/// <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); }