コード例 #1
0
 // GET: admin/customer
 public ActionResult Index()
 {
     ViewBag.lga = new SelectList(setupRepo.GetLGAs().OrderBy(x => x.lgaName).ToList(), "lgaId", "lgaName");
     ViewBag.bg  = new SelectList(setupRepo.GetBloodGroups().OrderBy(x => x.bloodGroupName).ToList(), "bloodGroupId", "bloodGroupName");
     return(View());
 }