presence/data/Repository/IGroupRepository.cs
2024-12-12 11:32:15 +03:00

30 lines
739 B
C#

using data.RemoteData.RemoteDataBase.DAO;
using domain.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace data.Repository
{
public interface IGroupRepository
{
List<GroupLocalEntity> GetAllGroup();
bool RemoveGroupById(int groupID);
bool UpdateGroupById(int groupID, GroupLocalEntity updatedGroup);
GroupLocalEntity GetGroupById(int groupID);
int AddGroup(GroupDao newGroup);
public List<GroupDao> GetAllGroupWithStident();
void RemoveAllStudentsFromGroup(int groupId);
void AddStudentToGroup(int groupId, UserDao student);
void UpdateGroup(GroupDao group);
}
}