Esempio n. 1
0
        public PartialViewResult AddNotes(HomeViewModels vm, string Command)
        {
            LoginViewModel lvm  = new LoginViewModel();
            string         s    = User.Identity.Name.ToString();
            AccountManager mgrr = new AccountManager();

            lvm          = mgrr.getUserNames(s);
            ViewBag.name = lvm.userFullName;

            NoteManager mgr = new NoteManager();

            if (Command == "AddNotes")
            {
                mgr.AddNotes(vm);
                vm.SuccessMessage = true;
            }

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