presence/data/Repository/IGroupRepository.cs

33 lines
857 B
C#
Raw Normal View History

2024-11-11 09:07:11 +00:00
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);
2024-11-20 09:15:21 +00:00
int AddGroup(GroupDao newGroup);
2024-11-11 09:07:11 +00:00
2024-11-18 12:42:33 +00:00
public List<GroupDao> GetAllGroupWithStident();
2024-12-04 18:00:36 +00:00
void RemoveAllStudentsFromGroup(int groupId);
void AddStudentToGroup(int groupId, UserDao student);
2024-12-12 08:32:15 +00:00
void UpdateGroup(GroupDao group);
2024-12-04 18:00:36 +00:00
2024-12-16 04:10:04 +00:00
bool RemoveUserByGuid(Guid userGuid);
UserDao UpdateUser(Guid userGuid, string newFIO, int groupId);
2024-11-20 09:15:21 +00:00
2024-11-11 09:07:11 +00:00
}
}