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

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

            return(result);
        }