Пример #1
0
        public ActionResult NotesSummaryList(int parentID)
        {
            var model = new NotesSummaryListVM
            {
                SummaryItems = NotesService.GetNotes(parentID),
                ParentID     = parentID
            };

            return(PartialView("~/App/Notes/Views/NotesSummaryList.cshtml", model));
        }
Пример #2
0
        public ActionResult FollowupComplete(NoteFollowupSaveRequest model)
        {
            var user = Global.Default.User();

            NotesService.SaveNoteFollowup(model, user.ID.Value);
            var noteSummary = NotesService.GetNoteSummary(model.NoteID);
            var retModel    = new NotesSummaryListVM()
            {
                SummaryItems = new List <NoteDetailsDTO> {
                    noteSummary
                }
            };

            return(PartialView("~/App/Notes/Views/NotesSummaryList.cshtml", retModel));
        }