Raspisanie/data/Repository/IPresenceRepository.cs

20 lines
835 B
C#
Raw Normal View History

2024-12-11 08:30:05 +00:00
using data.RemoteData.RemoteDataBase.DAO;
using domain.Models;
namespace data.Repository
{
public interface IPresenceRepository
{
void SavePresence(List<PresenceLocalEntity> presences);
List<PresenceLocalEntity> GetPresenceByGroup(int groupId);
List<PresenceLocalEntity> GetPresenceByGroupAndDate(int groupId, DateTime date);
DateTime? GetLastDateByGroupId(int groupId);
public GroupPresenceSummary GetGeneralPresenceForGroup(int groupId);
bool UpdateAttention(Guid UserGuid, int groupId, int firstLesson, int lastLesson, DateTime date, bool isAttendance);
void MarkUserAsMissing(Guid userGuid, int firstLessonNumber, int lastLessonNumber);
void AddPresence(PresenceLocalEntity presence);
List<PresenceDao> GetAttendanceByGroup(int groupId);
}
}