slarny4/Demo1/Data/Repository/IPresenceRepository.cs
Class_Student aa3336ca1b init
2024-10-23 12:52:43 +03:00

19 lines
738 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using Demo.Domain.Models;
namespace Demo.Data.Repository
{
public interface IPresenceRepository
{
List<User> GetUsersByGroup(int groupNumber);
void SavePresence(List<LessonPresence> presenceList);
List<LessonPresence> GetPresenceByGroup(int groupNumber);
List<LessonPresence> GetPresenceByGroupAndDate(int groupNumber, DateTime date);
void MarkUserAbsent(Guid userId, int groupNumber, int lessonIndex, DateTime date);
// Добавляем метод для обновления записи о посещаемости
void UpdatePresence(LessonPresence presence); // Обновление присутствия
}
}