public async Task <IActionResult> Create([FromBody] CreateProductTypeGroup request) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var resultId = await _productTypeGroupService.Create(request); if (!resultId.IsSuccessed) { return(BadRequest(resultId)); } var result = await _productTypeGroupService.GetById(resultId.ResultObj); return(Ok(result)); }