public AppRoleService(IAppUnitOfWork uow) : base(uow, new AppRoleMapper()) { ServiceRepository = Uow.BaseRepository <DAL.App.DTO.Identity.AppRole, Domain.Identity.AppRole>(); }
public virtual async Task AddAsync(TEntity entity) { await Uow.BaseRepository <TEntity>().AddAsync(entity); }
public virtual async Task <TEntity> FindAsync(params object[] id) { return(await Uow.BaseRepository <TEntity>().FindAsync(id)); }
public virtual async Task <IEnumerable <TEntity> > AllAsync() { return(await Uow.BaseRepository <TEntity>().AllAsync()); }
public Task <bool> Exists(int id) { return(Uow.BaseRepository <TEntity>().Exists(id)); }
public virtual void Remove(params object[] id) { Uow.BaseRepository <TEntity>().Remove(id); }
public virtual void Remove(TEntity entity) { Uow.BaseRepository <TEntity>().Remove(entity); }
public virtual TEntity Update(TEntity entity) { return(Uow.BaseRepository <TEntity>().Update(entity)); }