Skip to content

Instantly share code, notes, and snippets.

@gsedubun
Created August 6, 2018 04:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gsedubun/db2c733375f0ac095cf1c6e873198bd9 to your computer and use it in GitHub Desktop.
Save gsedubun/db2c733375f0ac095cf1c6e873198bd9 to your computer and use it in GitHub Desktop.
using Microsoft.AspNetCore.Mvc;
using tracking.Models;
namespace tracking.Controllers
{
public class MapController : Controller{
private AirportRepository Repository;
public MapController(AirportRepository airport)
{
this.Repository = airport;
}
public IActionResult Index(){
return View();
}
public IActionResult Search(string name){
var data = this.Repository.Search(name.Trim());
return Ok(data);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment