Esempio n. 1
0
        public RestauranteController()
        {
            //TODO: Implementar Unity para DI
            contexto = new SawluxContexto();
            var repo = new RestauranteRepositorio(contexto);

            restauranteService = new RestauranteService(repo);
        }
Esempio n. 2
0
        public PratoController()
        {
            //TODO: Implementar Unity para DI
            contexto = new SawluxContexto();
            var repo            = new PratoRepositorio(contexto);
            var repoRestaurante = new RestauranteRepositorio(contexto);

            restauranteService = new RestauranteService(repoRestaurante);

            pratoService = new PratoService(repo, restauranteService);
        }
Esempio n. 3
0
 public PratoRepositorio(SawluxContexto repo)
     : base(repo)
 {
 }
Esempio n. 4
0
 public RepositorioBase(SawluxContexto repo)
 {
     ctx = repo;
 }
Esempio n. 5
0
 public RestauranteRepositorio(SawluxContexto repo)
     : base(repo)
 {
 }