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

            restauranteService = new RestauranteService(repo);
        }
Example #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);
        }
Example #3
0
 public PratoRepositorio(SawluxContexto repo)
     : base(repo)
 {
 }
Example #4
0
 public RepositorioBase(SawluxContexto repo)
 {
     ctx = repo;
 }
Example #5
0
 public RestauranteRepositorio(SawluxContexto repo)
     : base(repo)
 {
 }