public void LoadAll() { //var GenderList = GenderServices.GetAll(); //ViewBag.GenderList = new SelectList(GenderList, "GenderID", "GenderName"); ViewBag.GenderList = new SelectList(GenderServices.GetDropDown(), "Value", "Text"); ViewBag.PostOfficeList = new SelectList(PostOfficeServices.GetDropDown(), "Value", "Text"); ViewBag.BloodGroupList = new SelectList(BloodGroupServices.GetDropDown(), "Value", "Text"); ViewBag.NationalityList = new SelectList(NationalityServices.GetDropDownValue(), "Value", "Text"); ViewBag.MaritalList = new SelectList(MaritalStatusServices.GetDropDown(), "Value", "Text"); ViewBag.RegionList = new SelectList(RegionServices.GetDropDown(), "Value", "Text"); ViewBag.DistrictList = new SelectList(DistrictServices.GetDropDown(), "Value", "Text"); ViewBag.PostOfficeList = new SelectList(PostOfficeServices.GetDropDown(), "Value", "Text"); ViewBag.PoliceStationList = new SelectList(PoliceStationServices.GetDropDown(), "Value", "Text"); ViewBag.DivisionList = new SelectList(DivisionServices.GetDropDown(), "DivisionId", "DivisionName"); ViewBag.CountryList = new SelectList(CountryServices.GetDropDown(), "CountryId", "CountryName"); }
// GET: PostOffice/Create public ActionResult Create() { ViewBag.PostOfficeList = new SelectList(DistrictServices.GetDropDown(), "Value", "Text"); return(View()); }