Beispiel #1
0
        public ActionResult yMap(string phone)
        {
            var model = new yMapWeather.Models.UserLocation {
                PhoneNumber = phone
            };
            Int16 err = 0;

            model.GetUserLocation(ref err);

            return(View(model));
        }
Beispiel #2
0
        public ActionResult yWeather(string phone)
        {
            var model = new yMapWeather.Models.UserLocation()
            {
                PhoneNumber = phone
            };
            Int16 err = 0;

            model.GetUserLocation(ref err);

            var WOEID = model.GetWOEIDForLocation(ref err);
            var wi    = new yMapWeather.Models.WeatherInfo();

            wi.WeatherForcast(WOEID);

            return(View(wi));
        }