Exemple #1
0
        public async Task <ActionResult <IEnumerable <Coordinate> > > GetCoordinateById(long id)
        {
            var coordinate = await coordinateService.GetCoordinateById(id);

            var coordinateResource = mapper.Map <Coordinate, CoordinateDTO>(coordinate);

            return(Ok(coordinateResource));
        }