Exemple #1
0
 public ActionResult CreateInFolder(Folder newFolder, string text)
 {
     if (ModelState.IsValid)
     {
         Folder parent = controller.GetFolderDirectly((int)newFolder.FolderId);
         Folder result = controller.CreateFolder(newFolder.Title, User.Identity.Name, parent);
         return(RedirectToAction("Index", result));
     }
     return(View());
 }