Esempio n. 1
0
        public ActionResult Index()
        {
            CategoriaController categoriaController = new CategoriaController();
            ProdutoController   produtoController   = new ProdutoController();
            var model = new FiltrosViewModel
            {
                Categorias = categoriaController.GetCategoria(),
                Produtos   = produtoController.GetProdutos(),
            };

            return(View(model));
        }
Esempio n. 2
0
        public ActionResult Create()
        {
            CategoriaController categoriaController = new CategoriaController();
            CategoriaDAO        categoriaDAO        = new CategoriaDAO();
            var listaCategoria = categoriaDAO.GetAll();

            var model = new ProdutoViewModel()
            {
                Categorias = categoriaController.GetCategoria(),
            };

            return(View(model));
        }
Esempio n. 3
0
        public ActionResult IndexRelatorioBaixa()
        {
            BaixaController     baixaController     = new BaixaController();
            ProdutoController   produtoController   = new ProdutoController();
            CategoriaController categoriaController = new CategoriaController();

            var model = new FiltrosViewModel()
            {
                Baixas     = baixaController.GetBaixas(),
                Categorias = categoriaController.GetCategoria(),
                Produtos   = produtoController.GetProdutos(),
            };

            return(View(model));
        }
Esempio n. 4
0
        public ActionResult IndexRelatorioLote()
        {
            LoteController      loteController      = new LoteController();
            ProdutoController   produtoController   = new ProdutoController();
            CategoriaController categoriaController = new CategoriaController();

            var model = new FiltrosViewModel()
            {
                Lotes      = loteController.GetLotes(),
                Categorias = categoriaController.GetCategoria(),
                Produtos   = produtoController.GetProdutos(),
            };

            return(View(model));
        }