|
@ -16,39 +16,39 @@ namespace WebApp.Controllers |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[HttpGet] |
|
|
[HttpGet] |
|
|
public HttpResponseMessage regions(string lang) |
|
|
|
|
|
|
|
|
public HttpResponseMessage regions(string Lang) |
|
|
{ |
|
|
{ |
|
|
return new LocationService().GetRegionList(lang); |
|
|
|
|
|
|
|
|
return new LocationService().GetRegionList(Lang); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[HttpGet] |
|
|
[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] |
|
|
[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] |
|
|
[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] |
|
|
[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] |
|
|
[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); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|