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)); }