Пример #1
0
        public async Task <IActionResult> GetCity(String City)
        {
            GetLatitudeLongitude PositionObject = new GetLatitudeLongitude();
            Location             Position       = PositionObject.Get(City);

            if (Position != null)
            {
                return(Ok(Position));
            }
            else
            {
                return(BadRequest("Not Found"));
            }
        }
Пример #2
0
        public async Task <IActionResult> Get()
        {
            string City      = "Pune Airport";
            string TypeValue = "store";
            GetLatitudeLongitude PositionObject = new GetLatitudeLongitude();
            //Location Position = PositionObject.Get(City);
            Location Position = null;
            var      Data     = await _getData.GetData(Position, TypeValue);

            if (Data != null)
            {
                return(Ok(Data));
            }
            else
            {
                return(BadRequest("Not Found"));
            }
        }