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()); }
public async Task<Product> EditAsync(Product entity, string userIdentityId) { return await this.productsRepository.EditAsync(entity); }