public static ActionResult Ok <T>(T data) where T : class, new() { var returnBody = new ReturnBody <T>(data); return(new OkObjectResult(returnBody)); }
public static ActionResult Error(string message) { var returnBody = new ReturnBody(-1, message); return(new OkObjectResult(returnBody)); }
public static IActionResult Ok() { var returnBody = new ReturnBody(); return(new OkObjectResult(returnBody)); }