コード例 #1
0
        public ActionResult Index()
        {
            ViewBag.Message = "Modify this template to kick-start your ASP.NET MVC application.";

            var result = new GoteborgServices().GetWeather();

            return View();
        }
コード例 #2
0
ファイル: ApiController.cs プロジェクト: jesperlind/FlyttaIn
        public JsonResult MyLocal()
        {
            var s = new GoteborgServices();
            var test = s.GetGBGLocationToCoord("Tredje Långgatan 13B");

            //var stops = new Communications().GetStops(latitude, longitude);

            //return Json(stops, JsonRequestBehavior.AllowGet);

            return Json(new { Title = "Test", Content = "Some content" }, JsonRequestBehavior.AllowGet);
        }
コード例 #3
0
 public JsonResult GetParkingCommuter(string longitude, string latitude)
 {
     var result = new GoteborgServices().GetParkingHandicap(latitude, longitude, "1000");
     return Json(result, JsonRequestBehavior.AllowGet);
 }
コード例 #4
0
        public JsonResult GetNearbyStops(string longitude,string latitude)
        {
            var result = new GoteborgServices().GetGBGStopsByCoord(latitude, longitude,10);

            return Json(JsonConvert.SerializeObject(result), JsonRequestBehavior.AllowGet);
        }