Example #1
0
        public async Task <ActionResult <IReadOnlyList <ServiceToReturnDto> > > GetServices()
        {
            var spec     = new ServiceWithTypeSpec();
            var services = await _serviceRepo.ListAsync(spec);

            return(Ok(_mapper.Map <IReadOnlyList <Service>, IReadOnlyList <ServiceToReturnDto> >(services)));
        }