Esempio n. 1
0
 public async Task DeleteAsync(Product entity)
 {
     await this.productsRepository.DeleteAsync(entity);
 }
 // POST: api/Products
 public async Task Post(Product entity)
 {
     await service.AddAsync(entity, User.Identity.GetUserId());
 }
Esempio n. 3
0
 public async Task<Product> EditAsync(Product entity, string userIdentityId)
 {
     return await this.productsRepository.EditAsync(entity);
 }