public void CreateActionBenefit(string exchangeName, ActionBenefitMessage message)
        {
            PharmacySystem p = _pharmacyRepo.GetPharmacyByExchangeName(exchangeName);

            if (p == null)
            {
                throw new ArgumentNullException("There is no pharmacy with that exchange!");
            }
            if (message == null)
            {
                throw new ArgumentNullException("Message can not be null!");
            }

            ActionBenefit ab = new ActionBenefit(p.Id, message);

            CreateActionBenefit(ab);
        }
 public PharmacySystem GetPharmacyByExchangeName(string exchangeName)
 {
     return(_pharmacyRepo.GetPharmacyByExchangeName(exchangeName));
 }