[HttpPost]/*, ValidateAntiForgeryToken]*/ public ActionResult AddIntellectual(IntellectualModel model) { if (ModelState.IsValid && MainObject.CheckUserHasWriteAccess(model.MainId)) { model.Save(); return(PartialView("Partials/_intellectualList", IntellectualPropertyObject.GetIntellectualProperties(model.MainId))); } return(null); }
/// <summary> /// /// </summary> /// <param name="id">Main Id</param> /// <param name="rid">IntellectualId</param> /// <returns></returns> public ActionResult IntellectualPartial(int?id, int?rid) { var model = new IntellectualModel(); if (id.HasValue) { model = new IntellectualModel(id.Value, rid); } return(PartialView("Partials/IntellectualPartial", model)); }