Пример #1
0
        public PartialViewResult EditNotes(HomeViewModels vm, string Command)
        {
            NoteManager mgr = new NoteManager();

            if (Command == "Edit")
            {
                mgr.EditNotes(vm);
                vm.SuccessMessage = true;
            }
            if (Command == "Delete")
            {
                mgr.DeleteNotes(vm.notes.note_id);
                vm.SuccessMessage = true;
            }

            return(PartialView("_EditNotes", vm));
        }