Пример #1
0
 public IEnumerable PutProduct(int id, Product product)
 {
     //product.Id = id;
     if (repository.Update(product))
     {
         return(repository.GetAll());
     }
     else
     {
         return(null);
     }
 }
Пример #2
0
 public async Task <ActionResult> UpateProduct([FromBody] Product product)
 {
     return(Ok(await _productRepositories.Update(product)));
 }