public ActionResult Validate(PublishModel model)
        {
            if (model.EntityId != 0)
            {
                return this.RedirectToAction(model.ActionName, model.ControllerName, new { id=model.EntityId, publishCode = model.Code });
            }

            return this.RedirectToAction(model.ActionName, model.ControllerName, new { model.Skip, model.Take, publishKey = model.Code });
        }
 public ActionResult ValidateList(string controllerName, string actionName, int skip = 0, int take = 10)
 {
     var model = new PublishModel(controllerName, actionName, skip, take);
     return PartialView("Validate", model);
 }
 //
 // GET: /Publish/
 public ActionResult Validate(string controllerName, string actionName, long id = 0)
 {
     var model = new PublishModel(controllerName, actionName, id);
     return PartialView(model);
 }