private async Task <Coordinate> GetCoordinate(CoordinateOrLocation coordinateOrLocation) { if (coordinateOrLocation.Coordinate != null) { return(coordinateOrLocation.Coordinate); } return(await _hereService.GetCoordinate(coordinateOrLocation.LocationId)); }
public async Task <Coordinate> GetCoordinate([FromBody] LocationIdModel model) { return(await _hereService.GetCoordinate(model?.LocationId)); }