public IActionResult ApproveReferenceOrder(ApproveIdRequest request) { if (ModelState.IsValid) { var response = new SingleResponse <long>(); ReferenceOrder order = _cacheHelper.GetApprovalOrder <ReferenceOrder>(request.Id); ActionResult result = _xbService.ApproveReferenceOrder(order); response.Result = result.Id; response.ResultCode = ResultCodeFormatter.FromPersonalAccountSecurityService(result.ResultCode); response.Description = utils.GetActionResultErrors(result.Errors); return(ResponseExtensions.ToHttpResponse(response)); } else { return(ValidationError.GetValidationErrorResponse(ModelState)); } }