// GET: Information public ActionResult GetCategories(string id) { WikiCrawler.Wikipedia wkp = new WikiCrawler.Wikipedia(); var StreetDesc = wkp.GetDescription(id); return(Json(StreetDesc, JsonRequestBehavior.AllowGet)); }
static void Main(string[] args) { WikiCrawler.Wikipedia w = new WikiCrawler.Wikipedia(); var desc = w.GetDescription("אברהם_אבן_עזרא"); /* * Console.WriteLine("Enter street name:"); * var name = Console.ReadLine(); * Console.WriteLine("Enter details:"); * var details = Console.ReadLine(); * * Console.WriteLine("Enter long:"); * var longitu = Console.ReadLine(); * * Console.WriteLine("Enter lat:"); * var langitu = Console.ReadLine(); * * StreetsRepository sr = new StreetsRepository(); * Streets st = new Streets(); * st.StreetName = name; * st.StreetDesc = details; * st.point = StreetsRepository.CreatePoint(double.Parse(langitu), double.Parse(longitu), 4326); * sr.SetStreet(st); */ }