public IActionResult ShowPlaces(SelectPlaceViewModel model) { if (ModelState.IsValid) { List <Place> PlacesList = repository.SelectPlaces(model); return(PartialView(PlacesList)); } else { return(View("Empty")); } }
public IActionResult ChoosePlace() { SelectPlaceViewModel model = new SelectPlaceViewModel(); return(View("ChoosePlace", model)); }