public IActionResult DeleteOrderGroup(GroupIdRequest request) { if (ModelState.IsValid) { Response response = new Response(); _xBService.DeleteOrderGroup(request.GroupId); response.ResultCode = ResultCodes.normal; return(ResponseExtensions.ToHttpResponse(response)); } else { return(ValidationError.GetValidationErrorResponse(ModelState)); } }