public ForeignCountry GetForeignCountryByName(string name) { var result = ForeignCountries.Include(fc => fc.Continent).FirstOrDefault(fc => fc.Name.Contains(name, StringComparison.InvariantCultureIgnoreCase)); return(result); }
public List <ForeignCountry> GetAllForeignCountriesAsList() { var result = ForeignCountries.Include(fc => fc.Continent).ToList(); return(result); }