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