private bool PassagerExists(Guid Id, string messageType) { Passager passager = _passagerRepository.GetById(Id); if (passager != null) { return(true); } _bus.RaiseEvent(new DomainNotification(messageType, Messages.MSG_PASSAGER_NOT_FOUND)); return(false); }
public PassagerViewModel Get(Guid id) { return(_mapper.Map <PassagerViewModel>(_passagerRepository.GetById(id))); }