Esempio n. 1
0
 public PartialViewResult TopMenu()
 {
     @ViewBag.TenTruong    = "";
     @ViewBag.TenNguoiDung = "";
     try
     {
         if (SysBaseInfor.GetCurrentRoleName().ToLower() == "hostadmin")
         {
             @ViewBag.TenTruong = "Quản trị viên MDC Group";
         }
         else
         {
             @ViewBag.TenTruong = SysBaseInfor.GetCurrentUnitName();
         }
         @ViewBag.TenNguoiDung = SysBaseInfor.GetCurrentUserName();
     }
     catch (Exception ex)
     {
     }
     return(PartialView("~/Views/Shared/_TopMenu.cshtml"));
 }