public async Task <ActionResult> Detail_UpdateAsync([FromRoute] int _salesOrderDetailId, [FromBody] SalesOrderDetail_UpdateInput_Data _data) { ActionResult response; try { if (ModelState.IsValid) { Output output = await svc.Detail_UpdateAsync(_salesOrderDetailId, _data); response = StatusCode((int)output.HttpStatus, output); return(response); } else { currentErrors.AddModelErrors(ModelState); } } catch (Exception ex) { currentErrors.MergeWith(errorsParser.FromException(ex)); } response = StatusCode((int)currentErrors.HttpStatus, new Output(currentErrors)); return(response); }