예제 #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);
 }