public async Task <IActionResult> Update(int id, [FromBody] UpdateProductTypeGroup request) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var result = await _productTypeGroupService.Update(id, request); if (!result.IsSuccessed) { return(BadRequest(result)); } return(Ok(result)); }