public IEnumerable PutProduct(int id, Product product) { product.Id = id; if (repository.Update(product)) { return(repository.GetAll()); } else { return(null); } }
public Product ListUpdate([FromBody] Product pdk) { var result = _inventory.Update(pdk); return(result); }