예제 #1
0
        public IActionResult Index(int Id = -1)
        {
            ProductionService ps = new ProductionService(_Context);
            FactoryService    fs = new FactoryService(_Context);

            ViewBag.factories = fs.GetAllFactoriesSimple();
            List <ProductionViewModel> res = new List <ProductionViewModel>();

            if (Id != -1)
            {
                res = ps.GetallProduction(Id);
            }
            return(View(res));
        }