Raspisanie/Zurnal/Date/Repository/IGroupRepository.cs

29 lines
896 B
C#
Raw Normal View History

2024-10-23 08:14:10 +00:00
using Zurnal.domain.Models;
2024-10-31 11:37:45 +00:00
using Microsoft.Extensions.DependencyInjection;
using Zurnal.Data.Repository;
2024-11-01 06:57:09 +00:00
using Group = System.Text.RegularExpressions.Group;
2024-10-21 11:56:16 +00:00
namespace Zurnal.Date.Repository
{
internal interface IGroupRepository
2024-11-01 06:57:09 +00:00
{
List<GroupLocalEntity> GetAllGroup();
bool RemoveGroupById(int groupID);
bool UpdateGroupById(int groupID, GroupLocalEntity updatedGroup);
bool AddGroup(GroupLocalEntity newGroup);
void AddGroupFromRegex(Group group);
Group GetGroupById(int id);
IEnumerable<Group> GetAllGroups();
void UpdateGroup(Group group);
void DeleteGroup(int id);
}
2024-10-31 11:37:45 +00:00
internal class ServiceConfiguration
{
public static void ConfigureServices(IServiceCollection services)
{
services.AddDbContext<RemoteDateBaseContext>()
.AddScoped<IGroupRepository, GroupRepositoryImpl>();
}
}
}