Exemple #1
0
 public ActionResult SetDatetimeEvent(ChangeDatetimeEventModel model)
 {
     try
     {
         int userID = UserLoginData.GetSessionID(Session["UserLoggedIn"]);
         noteBLL.ChangeDatetimeEventBLL(model.CurrentDate, model.HourSelected, model.MinuteSelected, model.TimeTableSelected, model.ID_Note, userID);
         if (model.InFolder)
         {
             return(PartialView("~/Views/Folder/_NotesInFolder.cshtml", new ClassifiedNotes(new FolderBLL().GetNotesInFolderBLL(userID, model.ID_Folder))));
         }
         else
         {
             return(PartialView("_ListOfNotes", new ClassifiedQueryableNotes(noteBLL.GetDataForNoteList(userID))));
         }
     }
     catch (Exception ex)
     {
         return(RedirectToAction("InternalServerError", "Error", new { error = ex.Message }));
     }
 }