public ActionResult LoadMenu() { var userName = System.Web.HttpContext.Current.User.Identity.Name; var user = _systemService.GetUserAndRole(0, userName); var model = new HomeViewModel { UserLogin = user }; return PartialView("MenuPartial", model); }
public ActionResult Index() { var userName = System.Web.HttpContext.Current.User.Identity.Name; var user = _systemService.GetUserAndRole(0, userName); var model = new HomeViewModel { UserLogin = user }; return View(model); }