slarny4/Demo1/Data/Repository/IPresenceRepository.cs

20 lines
796 B
C#
Raw Normal View History

2024-10-28 12:42:04 +00:00
// IPresenceRepository.cs
using System;
using System.Collections.Generic;
using AttendanceApp.Domain.Models;
using Demo.Data.LocalData.Entity;
2024-10-23 09:52:43 +00:00
2024-10-28 12:42:04 +00:00
namespace Demo.Data.Repository
2024-10-23 09:52:43 +00:00
{
public interface IPresenceRepository
{
2024-10-28 12:42:04 +00:00
IEnumerable<LocalPresence> GetPresencesByGroupAndDate(int groupId, DateTime date);
void AddPresence(LocalPresence presence);
void UpdatePresence(LocalPresence presence);
IEnumerable<LocalPresence> GetAllPresences();
IEnumerable<LocalPresence> GetPresenceByGroup(int groupId);
2024-10-24 08:50:32 +00:00
void UpdatePresence(Presence presence);
2024-10-28 12:42:04 +00:00
// Удалите этот метод, так как он дублирует GetPresencesByGroupAndDate
// IEnumerable<object> GetPresenceByGroupAndDate(int groupId, DateTime date);
2024-10-23 09:52:43 +00:00
}
2024-10-24 08:50:32 +00:00
}