Exemple #1
0
        public ForeignCountry GetForeignCountryByName(string name)
        {
            var result = ForeignCountries.Include(fc => fc.Continent).FirstOrDefault(fc =>
                                                                                     fc.Name.Contains(name, StringComparison.InvariantCultureIgnoreCase));

            return(result);
        }
Exemple #2
0
        public List <ForeignCountry> GetAllForeignCountriesAsList()
        {
            var result = ForeignCountries.Include(fc => fc.Continent).ToList();

            return(result);
        }