using Zurnal.domain.Models; using Microsoft.Extensions.DependencyInjection; using Zurnal.Data.Repository; using Group = System.Text.RegularExpressions.Group; namespace Zurnal.Date.Repository { internal interface IGroupRepository { List GetAllGroup(); bool RemoveGroupById(int groupID); bool UpdateGroupById(int groupID, GroupLocalEntity updatedGroup); bool AddGroup(GroupLocalEntity newGroup); void AddGroupFromRegex(Group group); Group GetGroupById(int id); IEnumerable GetAllGroups(); void UpdateGroup(Group group); void DeleteGroup(int id); } internal class ServiceConfiguration { public static void ConfigureServices(IServiceCollection services) { services.AddDbContext() .AddScoped(); } } }