예제 #1
0
파일: SmsManipulation.cs 프로젝트: adkl/nsi
        /// <summary>
        /// Delete sms
        /// </summary>
        /// <param name="Id"></param>
        public void DeleteSms(int Id)
        {
            SmsDomain smsDomain = _smsRepository.GetById(Id);

            if (smsDomain == null)
            {
                throw new NsiArgumentException(NotificationMessages.SmsWithIdDoesNotExists);
            }
            _smsRepository.Delete(smsDomain);
        }