public bool DoesCountryIdExist(int countryId)
 {
     return(_originCountryRepository?.SingleOrDefault(oc => oc.Id == countryId) != null);
 }
Exemplo n.º 2
0
 public OriginCountry FindCountry(int id)
 {
     return(_originCountryRepository.SingleOrDefault(country => country.Id == id));
 }