public async Task<ActionResult<Product>> UpdateProduct( Product product) { await _repository.UpdateAsync<Product>(product); return product; ; }
public async Task <bool> UpdateDocumentAsync(int Id, Document document) { return(await _repository.UpdateAsync(Id, document)); }