Created
August 6, 2018 04:37
-
-
Save gsedubun/db2c733375f0ac095cf1c6e873198bd9 to your computer and use it in GitHub Desktop.
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
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