Пример #1
0
 public AppRoleService(IAppUnitOfWork uow) : base(uow, new AppRoleMapper())
 {
     ServiceRepository = Uow.BaseRepository <DAL.App.DTO.Identity.AppRole, Domain.Identity.AppRole>();
 }
Пример #2
0
 public virtual async Task AddAsync(TEntity entity)
 {
     await Uow.BaseRepository <TEntity>().AddAsync(entity);
 }
Пример #3
0
 public virtual async Task <TEntity> FindAsync(params object[] id)
 {
     return(await Uow.BaseRepository <TEntity>().FindAsync(id));
 }
Пример #4
0
 public virtual async Task <IEnumerable <TEntity> > AllAsync()
 {
     return(await Uow.BaseRepository <TEntity>().AllAsync());
 }
Пример #5
0
 public Task <bool> Exists(int id)
 {
     return(Uow.BaseRepository <TEntity>().Exists(id));
 }
Пример #6
0
 public virtual void Remove(params object[] id)
 {
     Uow.BaseRepository <TEntity>().Remove(id);
 }
Пример #7
0
 public virtual void Remove(TEntity entity)
 {
     Uow.BaseRepository <TEntity>().Remove(entity);
 }
Пример #8
0
 public virtual TEntity Update(TEntity entity)
 {
     return(Uow.BaseRepository <TEntity>().Update(entity));
 }