pr1/Demo/Data/Repository/IPresenceRepository.cs

25 lines
998 B
C#
Raw Normal View History

2024-11-17 16:24:01 +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
{
public interface IPresenceRepository
{
void SavePresence(List<PresenceLocalEntity> presences);
List<PresenceLocalEntity> GetPresenceByGroup(int groupId);
List<PresenceLocalEntity> GetPresenceByGroupAndDate(int groupId, DateTime date);
DateOnly? GetLastDateByGroupId(int groupId);
public GroupPresenceSummary GetGeneralPresenceForGroup(int groupId);
bool UpdateAttention(Guid UserGuid, int groupId, int firstLesson, int lastLesson, DateOnly date, bool isAttendance);
void MarkUserAsAbsent(Guid userGuid, int firstLessonNumber, int lastLessonNumber);
void AddPresence(PresenceLocalEntity presence);
List<PresenceDao> GetAttendanceByGroup(int groupId);
}
}
}