Esempio n. 1
0
        protected void Application_Start()
        {
            System.Data.Entity.Database.SetInitializer <TrainingSQLContext>(null);
            GlobalConfiguration.Configure(WebApiConfig.Register);

            var sqlServer         = SqlServerService.GetInstance();
            var countryDatasource = CountriesDatasource.GetInstance();
        }
Esempio n. 2
0
        public List <LanguagePercent> GetLanguagePercentList(string code)
        {
            CountriesDatasource datasource = CountriesDatasource.GetInstance();

            return(datasource.GetLanguagePercent(code));
        }
Esempio n. 3
0
        public Country GetCountry(string code)
        {
            CountriesDatasource datasource = CountriesDatasource.GetInstance();

            return(datasource.GetCountry(code));
        }