Raspisanie/Zurnal/Date/Repository/IGroupRepository.cs

22 lines
698 B
C#
Raw Normal View History

2024-10-23 08:14:10 +00:00
using Zurnal.domain.Models;
2024-10-21 11:56:16 +00:00
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);
}
2024-10-24 11:43:25 +00:00
internal interface IServiceCollection services = new ServiceCollection();
serivces.AddDbContext<RemoteDatabeseContext>()
.AddDbContext<IGroupRepository, SQLGroupRepositoryImpl>();
2024-10-21 11:56:16 +00:00
}