Raspisanie/Zurnal/Date/Repository/IGroupRepository.cs
2024-10-24 14:43:25 +03:00

22 lines
698 B
C#

using Zurnal.domain.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
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>();
}