Demo/Data/Repository/PresenceRepositoryImpl.cs
2024-10-22 21:51:54 +03:00

27 lines
803 B
C#

using Demo.Data.LocalData;
using Demo.Domain.Models;
namespace Demo.Data.Repository
{
public class PresenceRepositoryImpl : IPresenceRepository
{
public List<PresenceLocalEntity> GetAllPresence = new List<PresenceLocalEntity>{};
public List<PresenceLocalEntity> GetAllPresences(){
return GetAllPresence;
}
public List<PresenceLocalEntity>? GetPresenceByGroup(){
return GetAllPresence;
}
public List<PresenceLocalEntity> GetPresenceByGroupDate(){
return GetAllPresence;
}
public List<PresenceLocalEntity> GeneratePresence(List<PresenceLocalEntity> presenceLocalEntities){
GetAllPresence.AddRange(presenceLocalEntities);
return presenceLocalEntities;
}
}
}