Ejemplo n.º 1
0
        public JsonResult Manage(PageModel model, GridManagingModel manageModel)
        {
            if (ModelState.IsValid || manageModel.Operation == GridOperationEnums.Del)
            {
                return(Json(_pageServices.ManagePage(manageModel.Operation, model)));
            }

            return(Json(new ResponseModel
            {
                Success = false,
                Message = GetFirstValidationResults(ModelState).Message
            }));
        }