Пример #1
0
        public async Task <ActionResult <ICollection <ServiceDto> > > GetAsync()
        {
            var services = await _serviceService.GetAllServicesAsync();

            var servicesDTO = _mapper.Map <ICollection <ServiceDto> >(services);
            var response    = new Response <ICollection <ServiceDto> >(servicesDTO);

            return(Ok(response));
        }