Demo/Data/Repository/PresenceRepositoryImpl.cs

27 lines
803 B
C#
Raw Normal View History

2024-10-22 18:51:54 +00:00
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;
}
}
}