public async Task <IActionResult> Put(Guid id, ProductUpdateModel model) { var updatedProduct = await _productService.UpdateAsync(id, model); var response = new Response(updatedProduct); return(Ok(response)); }
public async Task <IActionResult> Update(string lawnId, string productApplicationId, ProductApplicationForUpdate updatedProductApplication) { try { await _productApplicationService.UpdateAsync(lawnId, productApplicationId, updatedProductApplication); return(Ok()); } catch (ProductApplicationNotFoundException) { return(NotFound()); } }
public async Task <ProductGetResponseModel> PutProduct(Guid id, [FromBody] ProductCreateOrUpdateRequestModel value) { value.Id = id; return(await _productService.UpdateAsync(id, value)); }