Last active
December 18, 2015 20:59
-
-
Save venblee/5843982 to your computer and use it in GitHub Desktop.
Retriecing Tags From DB and PreLoad them
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public JsonResult SearchCity(string searchTerm) | |
{ | |
var city = _locationService.SearchCity(searchTerm); | |
var result = city.Select(a => new { id = a.Id, text = a.City }); | |
return Json(result, JsonRequestBehavior.AllowGet); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment