예제 #1
0
        public ActionResult ChangeFolderStatus(Guid Id)
        {
            Folder Folder = reposetory.GetFolder(Id);

            if (Folder == null)
            {
                return(HttpNotFound());
            }

            if (Folder.Status < FolderStatus.Published)
            {
                Folder.Status = Folder.Status.Next();
                reposetory.ChangeStatus(Folder);
            }

            return(View("Folder", Folder));
        }