Raspisanie/Zurnal/Date/Repository/IGroupRepository.cs
2024-10-28 11:22:33 +03:00

17 lines
582 B
C#

using Zurnal.domain.Models;
namespace Zurnal.Date.Repository
{
internal interface IGroupRepository
{
List<GroupLocalEntity> GetAllGroup();
bool RemoveGroupById(int groupID);
bool UpdateGroupById(int groupID, GroupLocalEntity updatedGroup);
GroupLocalEntity GetGroupById(int groupID);
bool AddGroup(GroupLocalEntity newGroup);
}
internal interface IServiceCollection services = new ServiceCollection();
serivces.AddDbContext<RemoteDatabeseContext>()
.AddDbContext<IGroupRepository, SQLGroupRepositoryImpl>();
}