Пример #1
0
        public async Task <IEnumerable <ExampleResource> > GetExamplesAsync()
        {
            IEnumerable <ExampleModel> examples = await _repository.GetExamplesAsync();

            IEnumerable <ExampleResource> resources = _mapper.Map <IEnumerable <ExampleModel>, IEnumerable <ExampleResource> >(examples);

            return(resources);
        }