17 lines
582 B
C#
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>();
|
|
}
|