Raspisanie/Zurnal/Date/Repository/IGroupRepository.cs

24 lines
742 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-10-21 11:56:16 +00:00
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);
}
2024-10-31 11:37:45 +00:00
internal class ServiceConfiguration
{
public static void ConfigureServices(IServiceCollection services)
{
services.AddDbContext<RemoteDateBaseContext>()
.AddScoped<IGroupRepository, GroupRepositoryImpl>();
}
}
}