presence/data/Repository/IGroupRepository.cs
2024-12-16 07:10:04 +03:00

33 lines
857 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);
bool RemoveUserByGuid(Guid userGuid);
UserDao UpdateUser(Guid userGuid, string newFIO, int groupId);
}
}