Exemple #1
0
        public ActionResult StarTask(int folderID, int noteID, bool inFolder)
        {
            try
            {
                noteBLL.StarTaskBLL(noteID);
                int userID = UserLoginData.GetSessionID(Session["UserLoggedIn"]);

                if (inFolder)
                {
                    return(PartialView("~/Views/Folder/_NotesInFolder.cshtml", new ClassifiedNotes(new FolderBLL().GetNotesInFolderBLL(userID, folderID))));
                }

                return(PartialView("_ListOfNotes", new ClassifiedQueryableNotes(noteBLL.GetDataForNoteList(userID))));
            }
            catch (Exception ex)
            {
                return(RedirectToAction("InternalServerError", "Error", new { error = ex.Message }));
            }
        }