public ActionResult GridUserData(GridCommand command) { var model = _webApiPluginService.GetGridModel(command.Page - 1, command.PageSize); AddButtonText(); return(new JsonResult { Data = model }); }
public ActionResult GridUserData(GridCommand command) { if (!HasPermission()) { return new JsonResult { Data = new GridModel <WebApiUserModel> { Data = new List <WebApiUserModel>() } } } ; var model = _webApiPluginService.GetGridModel(command.Page - 1, command.PageSize); AddButtonText(); return(new JsonResult { Data = model }); }