Пример #1
0
        /// <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);
        }
Пример #2
0
 public static Country ToEntity(this CountryModel model, Country destination)
 {
     return Mapper.Map(model, destination);
 }