semesterWork/data/Repository/IGroupRepository.cs

64 lines
1.6 KiB
C#
Raw Permalink Normal View History

2024-12-12 07:21:45 +00:00
using Data.DAO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace data.Repository
{
public interface IGroupRepository
{
2024-12-12 07:21:45 +00:00
public IEnumerable<Group> GetAllGroup();
public bool AddGroup(Group group);
public bool addGroupWithStudent(Group groups, IEnumerable<Student> students);
public bool DeleteGroup(int groupId);
public Group GetGroupWithSubjects(int groupId);
public void AddStudentsToGroup(List<Student> students);
public Group GetGroupById(int groupId);
public Subject GetSubjectById(int subjectId);
public Subject GetSubjectByName(string subjectName);
public void AddSubject(Subject subject);
List<Subject> GetGroupSubjects(int groupId);
List<Subject> GetSubjectsByGroupId(int groupId);
bool AddSubjectToGroup(int groupId, Subject subject);
public void DeleteAllAttendances();
public void DeleteAttendancesByGroup(int groupId);
void AddAttendance(Attendance attendance);
Visit GetVisitById(int visitId);
int GetGroupIdBySubjectName(string subjectName);
public IEnumerable<Attendance> GetAttendances(int groupId, string subject = null, DateTime? date = null, int? studentId = null);
Attendance GetAttendanceByDateStudentAndLesson(DateTime date, int studentId, int lessonNumber);
void UpdateAttendance(Attendance attendance);
void RemoveStudentsFromGroup(int groupId);
void RemoveStudentsFromGroupByIds(int groupId, List<int> studentIds);
}
}