예제 #1
0
        public ActionResult Index(FormCollection model)
        {
            ReportsIndex ri = new ReportsIndex
            {
                FormState        = model,
                AvailableReports = Reports.GetAvailable()
            };

            return(View(ri));
        }
예제 #2
0
        public IActionResult Index()
        {
            var ncc      = _ncc.GetAll().ToList().Select(j => j.TenNcc).Distinct().ToList();
            var tenhangs = _nhap.GetAll().Select(j => j.TenHang).Distinct().ToList();
            var madh     = _nhap.GetAll().Select(j => j.MaDonHang).Distinct().ToList();
            var t        = new ReportsIndex()
            {
                TenNccs = ncc, TenHangs = tenhangs, DonHangs = madh
            };

            //ViewBag.nccs = ncc;
            return(View(t));
        }