public ProdutoOrdemController(ContexDataService db, IHttpContextAccessor httpContext) { this.produtoData = new ProdutoData(db); this.produtoOrdemData = new ProdutoOrdemData(db); this.ItemlistaPrecoData = new ItemListaPrecoData(db); this.contexto = new ContextPage().ExtractContext(httpContext); }
public ItemListaPrecoController(ContexDataService db, IHttpContextAccessor httpContext) { this.produtoData = new ProdutoData(db); this.listaprecoData = new ListaPrecoData(db); this.ItemlistaPrecoData = new ItemListaPrecoData(db); // this.contexto = new ContextPage(httpContext.HttpContext.Session.GetString("email"), httpContext.HttpContext.Session.GetString("organizacao")); this.contexto = new ContextPage().ExtractContext(httpContext); }