public IEnumerable <string> GetMaDh() { return(_nhapService.GetAll().Select(j => j.MaDonHang).Distinct()); }
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)); }
public IActionResult Details(string madh) { var list = _nhapService.GetAll().Where(j => j.MaDonHang.Equals(madh)).ToList(); return(View("Index", list)); }