示例#1
0
        public void DeleteProfessional(ComposeKey <Guid, decimal> keys)
        {
            if (!_professionalRepository.ExistsProfessional(keys))
            {
                Notification.Raise(NotificationEvent.DefaultBuilder
                                   .WithNotFoundStatus()
                                   .WithMessage(AppConsts.LocalizationSourceName, Professional.Error.CouldNotFindProfessional)
                                   .Build());
            }

            if (!Notification.HasNotification())
            {
                _professionalRepository.DeleteProfessional(keys);
            }
        }