public static List <AppSetting> GetAppSet() { List <AppSetting> lList = new List <AppSetting>(); DataTable dt = new CommonDAL().GetAppSetList(); foreach (DataRow dr in dt.Rows) { AppSetting model = new AppSetting(); model.FillData(dr); lList.Add(model); } return(lList); }