public Professional GetProfessional(RequestDto <ComposeKey <Guid, decimal> > keys) { if (!_professionalRepository.ExistsProfessional(keys.GetId())) { Notification.Raise(NotificationEvent.DefaultBuilder .WithNotFoundStatus() .WithMessage(AppConsts.LocalizationSourceName, Professional.Error.CouldNotFindProfessional) .Build()); return(null); } return(_professionalRepository.GetProfessional(keys)); }
public Professional GetProfessional(int id) { return(professionalRepository.GetProfessional(id)); }