public IActionResult AddLocation(Location location) { var repo = new CoreRepository(); repo.Add(location); return(Index()); }