Mega_New_Presence/presence_new/Data/Repository/IPresenceRepository.cs

20 lines
829 B
C#
Raw Normal View History

2024-11-01 07:40:53 +00:00
using Demo.Data.RemoteData.RemoteDataBase.DAO;
using Demo.domain.Models;
using System;
using System.Collections.Generic;
namespace Demo.Data.Repository
{
public interface IPresenceRepository
{
void SavePresence(List<PresenceLocalEntity> presences);
List<PresenceLocalEntity> GetPresenceByGroup(int groupId);
List<PresenceLocalEntity> GetPresenceByGroupAndDate(int groupId, DateTime date);
2024-11-05 18:36:49 +00:00
DateOnly? GetLastDateByGroupId(int groupId);
2024-11-06 09:07:50 +00:00
public GroupPresenceSummary GetGeneralPresenceForGroup(int groupId);
2024-11-05 18:36:49 +00:00
void UpdateAtt(Guid UserGuid, int groupId, int firstLesson, int lastLesson, DateOnly date, bool isAttendance);
void MarkUserAsAbsent(Guid userGuid, int firstLessonNumber, int lastLessonNumber);
2024-11-01 07:40:53 +00:00
void AddPresence(PresenceLocalEntity presence);
}
}