public List <string> PopulateStatusList(ref DropDownList dropDownList) { dropDownList.Items.Clear(); var StatusList = MasterDataStatusDao.GetAll(); var returnList = new List <string>(); returnList.Add(""); dropDownList.Items.Add(new ListItem("")); foreach (var s in StatusList) { returnList.Add(s.Status); dropDownList.Items.Add(new ListItem(s.Status)); } dropDownList.SelectedIndex = 0; return(returnList); }
public List <MasterDataStatus> GetAll() { return(MasterDataStatusDao.GetAll()); }