public ActionResult A62Detail() { //StatusList statusList = new StatusList(); //List<SelectOption> selectOption = statusList.statusOption.Where(x=>x.Value != "").ToList(); //ViewBag.Status = new SelectList(selectOption, "Value", "Text"); ViewBag.DataYear = new SelectList(A6Repository.GetA62SearchYear() .Select(x => new { Text = x, Value = x }), "Value", "Text"); return(View()); }
public ActionResult A62Detail() { ViewBag.year = new SelectList( A6Repository.GetA62SearchYear() .Select(x => new { Text = x, Value = x }), "Value", "Text"); return(View()); }