示例#1
0
        public bool DeleteNewsletter(string email)
        {
            if (string.IsNullOrEmpty(email))
            {
                throw new ArgumentException("Empty email", nameof(email));
            }

            var newsletterDto = _newsletterRepository.GetByEmail(email);


            return(_newsletterRepository.Delete(newsletterDto));
        }