Beispiel #1
0
        public void DeleteSpecialty(int id)
        {
            if (!_specialtyRepository.ExistsSpecialty(id))
            {
                Notification.Raise(NotificationEvent.DefaultBuilder
                                   .WithNotFoundStatus()
                                   .WithMessage(AppConsts.LocalizationSourceName, Specialty.Error.CouldNotFindSpecialty)
                                   .Build());
            }

            if (!Notification.HasNotification())
            {
                _specialtyRepository.DeleteSpecialty(id);
            }
        }