Пример #1
0
        public async Task <ConferenceResult> Get(Guid id)
        {
            var conference = await _repository.Get(new ConferenceSpecification(id));

            if (conference == null)
            {
                throw new EntityNotFoundException();
            }

            return(Map(conference));
        }
Пример #2
0
        public async Task <CommunityResult> Get(Guid id)
        {
            var community = await _repository.Get(new CommunitySpecification(id));

            if (community == null)
            {
                throw new EntityNotFoundException();
            }

            return(Map(community));
        }
Пример #3
0
        public async Task <SpeakerResult> Get(Guid id)
        {
            var speaker = await _repository.Get(new SpeakerSpecification(id));

            if (speaker == null)
            {
                throw new EntityNotFoundException();
            }

            return(Map(speaker));
        }