Ejemplo n.º 1
0
 public static void RegistrarMenuDoUsuarioLogadoEmSessao(NumeroNivelDeAcesso numeroNivelDeAcesso)
 {
     using (var contexto = new SupplyManagerDbContext())
     {
         var menuGerente    = new MenuGerente(contexto);
         var menus          = menuGerente.ObterMenusPor(numeroNivelDeAcesso);
         var menusViewModel = MenuMapeador.Mapear(menus);
         HttpContext.Current.Session["Menu"] = menusViewModel;
     }
 }
Ejemplo n.º 2
0
 public BaseController()
 {
     Contexto    = new SupplyManagerDbContext();
     MenuGerente = new MenuGerente(Contexto);
 }