Exemple #1
0
 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);
 }
Exemple #2
0
 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);
 }