public ActionResult Index() { YearDetails yr = new YearDetails(); RoundDetails round = new RoundDetails(); ViewBag.dataSource = GetLQASData(); ViewBag.yearSource = yr.GetYearCollection(); ViewBag.roundSource = round.GetRoundCollection(); return(View()); }
public ActionResult Index() { YearDetails yr = new YearDetails(); RoundDetails round = new RoundDetails(); ViewBag.dataSource = GetLQASData(); ViewBag.yearSource = yr.GetYearCollection(); //ViewBag.roundSource = round.GetRoundCollection(); List <Round> Rounds = _context2.Rounds.ToList(); Rounds.Insert(0, new Round { RoundId = 0, ReportRoundName = "All" }); ViewData["RoundList"] = new SelectList(Rounds, "RoundId", "ReportRoundName"); List <Models.TreeGrid.Regions> Regions = _db.Regionlist.ToList(); ViewBag.regionSource = new SelectList(Regions, "RegionName"); return(View()); }