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