public ProformaController() { UsuarioDTO user = getCurrentUser(); if (user != null) { this.navbar = new Navbar(); ViewBag.currentUser = user; ViewBag.NombreEmpresa = user.nombreEmpresa; ViewBag.Title = ""; ViewBag.EsAdmin = isAdministrator(); ViewBag.EsSuperAdmin = isSuperAdministrator(); ViewBag.EsUsuarioInterno = isUsuarioInterno(); ViewBag.EsUsuarioExterno = isUsuarioExterno(); ViewBag.IdRol = user.IdRol; EmpresaBL empBL = new EmpresaBL(); ViewBag.Empresas = empBL.getEmpresasViewBag(); } else { ViewBag.EsAdmin = false; ViewBag.EsSuperAdmin = false; } CultureInfo[] cultures = { new CultureInfo("es-PE") }; }
public AdminController() { UsuarioDTO user = getCurrentUser(); if (user != null) { this.navbar = new Navbar(); ViewBag.currentUser = user; ViewBag.NombreEmpresa = user.nombreEmpresa; //ViewBag.Title = "NubeBooks"; ViewBag.EsAdmin = isAdministrator(); ViewBag.EsSuperAdmin = isSuperAdministrator(); ViewBag.EsUsuarioInterno = isUsuarioInterno(); ViewBag.EsUsuarioExterno = isUsuarioExterno(); ViewBag.IdRol = user.IdRol; EmpresaBL empBL = new EmpresaBL(); ViewBag.Empresas = empBL.getEmpresasViewBag(); } else { ViewBag.EsAdmin = false; ViewBag.EsSuperAdmin = false; } }