public ActionResult EditConcept(Int32 id, Int32 parentId)
 {
     var conceptViewModel = new AddOrEditConceptViewModel(WebSecurity.CurrentUserId, id, parentId);
     if (conceptViewModel.IsGroup)
         return PartialView("_AddFolderConceptForm", conceptViewModel);
     else
         return PartialView("_AddConceptForm", conceptViewModel);
 }
 public ActionResult SaveConcept(AddOrEditConceptViewModel model)
 {
     if (!model.IsGroup && !String.IsNullOrEmpty(model.FileData))
     {
         var attachmentsModel = JsonConvert.DeserializeObject<List<Attachment>>(model.FileData).ToList();
         model.SetAttachments(attachmentsModel);
     }
     model.Save();
     return null;
 }
 public ActionResult OpenConcept(Int32 id)
 {
     var conceptViewModel = new AddOrEditConceptViewModel(WebSecurity.CurrentUserId, id);
     return PartialView("_OpenConceptForm", conceptViewModel);
 }
 public ActionResult AddFolderConcept(Int32 parentId)
 {
     var conceptViewModel = new AddOrEditConceptViewModel(WebSecurity.CurrentUserId, 0, parentId);
     conceptViewModel.IsGroup = true;
     return PartialView("_AddFolderConceptForm", conceptViewModel);
 }