/// <summary> /// Deletes a country /// </summary> /// <param name="country">Country</param> public virtual void Delete(Country country) { Guard.IsNotNull(country, "country"); this.countryRepository.Delete(country); this.cacheManager.RemoveByPattern(COUNTRIES_PATTERN_KEY); //event notification this.eventPublisher.EntityDeleted(country); }
public static Country ToEntity(this CountryModel model, Country destination) { return Mapper.Map(model, destination); }