From d6d1f9139710fbfc6fc6b4925913a4744ef30ec9 Mon Sep 17 00:00:00 2001 From: berlin-tzen Date: Mon, 9 Jan 2023 14:05:33 +0800 Subject: [PATCH] =?UTF-8?q?[WHAT]=20=E6=9B=B4=E6=94=B9=E8=AE=8A=E6=95=B8?= =?UTF-8?q?=E5=90=8D=E7=A8=B1=20[WHY]=20ShowEasy=20=E5=BE=8C=E5=8F=B0?= =?UTF-8?q?=E9=96=8B=E7=99=BC=20[HOW]=20=E5=9C=B0=E5=9F=9F=E7=AE=A1?= =?UTF-8?q?=E7=90=86API=E9=96=8B=E7=99=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WebApp/Controllers/LocationController.cs | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/EuroTran/WebApp/Controllers/LocationController.cs b/EuroTran/WebApp/Controllers/LocationController.cs index bca1547..c0d15c0 100644 --- a/EuroTran/WebApp/Controllers/LocationController.cs +++ b/EuroTran/WebApp/Controllers/LocationController.cs @@ -16,39 +16,39 @@ namespace WebApp.Controllers [HttpGet] - public HttpResponseMessage regions(string lang) + public HttpResponseMessage regions(string Lang) { - return new LocationService().GetRegionList(lang); + return new LocationService().GetRegionList(Lang); } [HttpGet] - public HttpResponseMessage region(string lang, string regionid) + public HttpResponseMessage region(string Lang, string RegionID) { - return new LocationService().GetOneRegion(lang, regionid); + return new LocationService().GetOneRegion(Lang, RegionID); } [HttpGet] - public HttpResponseMessage countries(string lang, string regionid) + public HttpResponseMessage countries(string Lang, string RegionID) { - return new LocationService().GetCountryList(lang, regionid); + return new LocationService().GetCountryList(Lang, RegionID); } [HttpGet] - public HttpResponseMessage country(string lang, string countryid) + public HttpResponseMessage country(string Lang, string CountryID) { - return new LocationService().GetOneCountry(lang, countryid); + return new LocationService().GetOneCountry(Lang, CountryID); } [HttpGet] - public HttpResponseMessage cities(string lang, string countryid) + public HttpResponseMessage cities(string Lang, string CountryID) { - return new LocationService().GetCityList(lang, countryid); + return new LocationService().GetCityList(Lang, CountryID); } [HttpGet] - public HttpResponseMessage city(string lang, string cityid) + public HttpResponseMessage city(string Lang, string CityID) { - return new LocationService().GetOneCity(lang, cityid); + return new LocationService().GetOneCity(Lang, CityID); } }