Example #1
0
        public ClienteController(ContexDataService db, IHttpContextAccessor httpContext, SqlGenericData _sqlData)
        {
            this.clienteData        = new ClienteData(db);
            this.enderecoData       = new EnderecoData(db);
            this.pedidoData         = new PedidoData(db);
            this.atendimentoData    = new AtendimentoData(db);
            this.contasReceberData  = new ContasReceberData(db);
            this.balcaoVendasData   = new BalcaoVendasData(db);
            this.ordemServicoData   = new OrdemServicoData(db);
            this.pedidoRetiradaData = new PedidoRetiradaData(db);

            this.contexto = new ContextPage().ExtractContext(httpContext);
            this.sqlData  = _sqlData;
        }
 public AtendimentoController(ContexDataService db, IHttpContextAccessor httpContext, SqlGenericData _sqlData)
 {
     this.atendimentoData = new AtendimentoData(db);
     this.sqlData         = _sqlData;
     this.contexto        = new ContextPage().ExtractContext(httpContext);
 }