Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }