public Task DeleteAsync(vAllPost parameters)
 {
     throw new NotImplementedException();
 }
        public async Task UpdateAsync(vAllPost entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
 public HashSet <string> DeleteValidation(vAllPost parameters)
 {
     return(ValidationMessages);
 }
 public HashSet <string> UpdateValidation(vAllPost entity)
 {
     return(ValidationMessages);
 }
        public async Task AddAsync(vAllPost entity)
        {
            await Uow.RegisterNewAsync(entity);

            await Uow.CommitAsync();
        }
 public async Task <object> GetBy(vAllPost parameters)
 {
     // throw new NotImplementedException();
     return(await Uow.Repository <vAllPost>().SingleOrDefaultAsync(t => t.PostId == parameters.PostId));
 }
 public async Task <object> GetAsync(vAllPost parameters)
 {
     //throw new NotImplementedException();
     return(await Uow.Repository <vAllPost>().AllAsync());
 }
Beispiel #8
0
 public async Task <object> GetBy(vAllPost parameters)
 {
     // throw new NotImplementedException();
     return(await Uow.Repository <vAllPost>().FindByAsync(t => t.UserId == parameters.UserId));
 }