예제 #1
0
 public List <SelectListItem> BindAllVillage()
 {
     try
     {
         var countrylist = objICommon.BindAllVillage().Select(y => new SelectListItem {
             Text = y.vil_desc, Value = y.vil_code.ToString()
         }).OrderBy(x => x.Text).ToList();
         //countrylist.Insert(0, new SelectListItem { Text = Resource.LegalResource_Common_PleaseSelectcountry, Value = "0" });
         return(countrylist ?? null);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }