Browse Source

[WHAT] 更改變數名稱 [WHY] ShowEasy 後台開發 [HOW] 地域管理API開發

Dev
berlin-tzen 2 years ago
parent
commit
d6d1f91397
  1. 24
      EuroTran/WebApp/Controllers/LocationController.cs

24
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);
}
}

Loading…
Cancel
Save