pr1/presence/data/Repository/IGroupRepository.cs

22 lines
674 B
C#
Raw Normal View History

2024-12-23 09:12:26 +00:00
using System;
2024-11-17 16:24:01 +00:00
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2024-12-23 09:12:26 +00:00
using presence.data.Entity;
using presence.data.LocalData.Entity;
using presence.data.RemoteData.RemoteDataBase.DAO;
2024-11-17 16:24:01 +00:00
2024-12-23 09:12:26 +00:00
namespace presence.data.Repository
2024-11-17 16:24:01 +00:00
{
public interface IGroupRepository
{
2024-12-19 17:36:57 +00:00
List<GroupDao> GetAllGroup();
2024-11-17 16:24:01 +00:00
bool RemoveGroupById(int groupID);
2024-12-19 17:36:57 +00:00
bool UpdateGroupById(int groupID, String name);
GroupDao GetGroupById(int groupID);
bool AddGroup(GroupDao group);
bool AddStudents(GroupDao group, List<UserDao> students);
public Task<IEnumerable<GroupDao>> getAllGroupAsync();
2024-11-17 16:24:01 +00:00
}
2024-12-19 17:36:57 +00:00
}