コード例 #1
0
        public async Task <ActionResult <IEnumerable <Coordinate> > > GetAllCoordinates()
        {
            var coordinates = await coordinateService.GetAllCoordinates();

            var coordinateResources = mapper.Map <IEnumerable <Coordinate>, IEnumerable <CoordinateDTO> >(coordinates);

            return(Ok(coordinateResources));
        }