32 lines
893 B
C#
32 lines
893 B
C#
using System;
|
|
using System.Text.RegularExpressions;
|
|
using Zurnal.domain.Models;
|
|
using Group = System.Text.RegularExpressions.Group;
|
|
|
|
public interface IGroupRepository
|
|
{
|
|
void AddGroup(Group group);
|
|
Group GetGroupById(int id);
|
|
IEnumerable<Group> GetAllGroups();
|
|
void UpdateGroup(Group group);
|
|
void DeleteGroup(int id);
|
|
object GetAllGroup();
|
|
}
|
|
|
|
public interface IUserRepository
|
|
{
|
|
void AddUser(User user);
|
|
User GetUserById(int id);
|
|
IEnumerable<User> GetAllUsers();
|
|
void UpdateUser(User user);
|
|
void DeleteUser(int id);
|
|
}
|
|
|
|
public interface IPresenceRepository
|
|
{
|
|
void AddPresence(Presence presence);
|
|
Presence GetPresenceById(int id);
|
|
IEnumerable<Presence> GetAllPresences();
|
|
void UpdatePresence(Presence presence);
|
|
void DeletePresence(int id);
|
|
} |