public IActionResult DeleteMessage(MessageIdRequest request) { if (ModelState.IsValid) { Response response = new Response(); _xbService.DeleteMessage(request.MessageId); response.ResultCode = ResultCodes.normal; return(ResponseExtensions.ToHttpResponse(response)); } else { return(ValidationError.GetValidationErrorResponse(ModelState)); } }