Beispiel #1
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));
        }
Beispiel #2
0
        public IActionResult GetNameNccs()
        {
            var dt = _nccService.GetAll().Select(j => j.TenNcc).Distinct().ToList();

            return(Json(dt));
        }