public ActionResult Index() { HoneyBadgerSvc service = new HoneyBadgerSvc(); HomeLookupViewModel model = new HomeLookupViewModel(); model.IncidentYears = service.LoadIncidentYears(); model.IncidentTypes = service.LoadIncidentTypes(); return View(model); }
// GET api/<controller>/val public string Get(string disasterType, string disasterYear, string regionLevel) { HoneyBadgerSvc service = new HoneyBadgerSvc(); XDocument kml = service.GetData(disasterType, disasterYear, regionLevel); //this line of code is for a workaround due the difficulty to expose a pulicly accessible URL for google. try { kml.Save(@"\\doepamsutl1\C$\test\testKML3.kml", SaveOptions.None); } catch {} return kml.ToString(); }