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