Esempio n. 1
0
        // GET: Campsite
        public ActionResult Index(string id)
        {
            var t = Task.Run(() => AwaitOperatorCampsite.curlRequestAsync(facilityID: id));

            t.Wait();
            return(View(t.Result));
        }
Esempio n. 2
0
        // GET: Campsite/Details/5
        public ActionResult Details(string id)
        {
            if (string.IsNullOrEmpty(id))
            {
                return(HttpNotFound());
            }

            var t = Task.Run(() => AwaitOperatorCampsite.curlRequestAsyncSingleCamp(facilityID: id));

            t.Wait();
            //var model = t.Result;
            //ViewBag.test = model;
            return(View(t.Result));
        }