Пример #1
0
        public void RefuseMPP(MilitaryProtectionPactOffer offer)
        {
            transactionsService.GetGoldForDeclineMPP(offer.FirstCountry, offer.SecondCountry, offer.ReservedGold);

            var otherLink = EntityLinkCreator.Create(offer.SecondCountry.Entity);
            var msg       = $"{otherLink} declined your MPP offer.";

            warningService.AddWarning(offer.FirstCountryID, msg);


            militaryProtectionPactOfferRepository.Remove(offer);
            militaryProtectionPactOfferRepository.SaveChanges();
        }