public async Task <ActionResult <IEnumerable <Coordinate> > > GetAllCoordinates() { var coordinates = await coordinateService.GetAllCoordinates(); var coordinateResources = mapper.Map <IEnumerable <Coordinate>, IEnumerable <CoordinateDTO> >(coordinates); return(Ok(coordinateResources)); }