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