Exemplo n.º 1
0
        public static SelectList GetLicensedAPIType(string ConnectionString)
        {
            List <SelectListItem> lstAPITypes = new List <SelectListItem>();
            SettingFacade         fac         = new SettingFacade(ConnectionString);
            DataTable             dt          = fac.GetLicensedAPIType();

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                lstAPITypes.Add(new SelectListItem {
                    Value = dt.Rows[i]["APIType"].ToString(), Text = dt.Rows[i]["APIType"].ToString()
                });
            }
            return(new SelectList(lstAPITypes, "Value", "Text"));
        }