Begin adding fluxnet site autocomplete

This commit is contained in:
2016-01-29 12:40:00 -05:00
parent 7e4d475260
commit c5fcb8d635
5 changed files with 47 additions and 6 deletions
+14
View File
@@ -0,0 +1,14 @@
using System.Web.Mvc;
using LeafWeb.Core.DAL;
namespace LeafWeb.Web.Controllers
{
public class FluxnetSiteController : ControllerBase
{
public JsonResult Autocomplete(string term)
{
var cities = DataService.GetFluxnetSitesAutocomplete(term);
return Json(cities, JsonRequestBehavior.AllowGet);
}
}
}