private void FillRegion() { try { string OCODE = ((SessionUser)Session["SessionUser"]).OCode; drpRegion.DataSource = regionDal.GetAllRegions(OCODE).ToList(); drpRegion.DataTextField = "RegionName"; drpRegion.DataValueField = "RegionID"; drpRegion.DataBind(); drpRegion.Items.Insert(0, new ListItem("--Select--", "0")); } catch (Exception ex) { throw ex; } }
public virtual List <HRM_Regions> GetAllRegions(string OCODE) { return(objRegonDal.GetAllRegions(OCODE)); }