public IActionResult OnPost() { if (Country.Id > 0) { return(RedirectToPage("/DoINeedBeer", new { countryId = Country.Id })); } else { countries = new countriesService(_countriesRepository).getAllCountries(); return(Page()); } }
public void OnGet() { countries = new countriesService(_countriesRepository).getAllCountries(); }