Ejemplo n.º 1
0
        public static SelectList GetCountryList()
        {
            IMasterDataBLL masterBll = MvcApplication.GetInstance <MasterDataBLL>();
            var            data      = masterBll.GetAllDataCountry();

            return(new SelectList(data, "COUNTRY_CODE", "COUNTRY_CODE"));
        }
Ejemplo n.º 2
0
        public static SelectList GetCountryListCodeAndName()
        {
            IMasterDataBLL masterBll        = MvcApplication.GetInstance <MasterDataBLL>();
            var            data             = masterBll.GetAllDataCountry();
            var            selectItemSource = Mapper.Map <List <SelectItemModel> >(data);

            return(new SelectList(selectItemSource, "ValueField", "TextField"));
            //return new SelectList(data, "COUNTRY_CODE", "COUNTRY_CODE");
        }