public PartialViewResult EditNotes(int id) { 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(); HomeViewModels vm = new HomeViewModels(); vm.notes = mgr.FindNotes(id); return(PartialView("_EditNotes", vm)); }