You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
using EasyBL.WebApi.Filters; using EasyBL.WEBAPP.SYS; using Entity.ShowEasyDtos; using Entity.Sugar; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http;
namespace WebApp.Controllers { public class LocationController : ApiController {
[HttpGet] public HttpResponseMessage regions(string lang) { return new LocationService().GetRegionList(lang); }
[HttpGet] public HttpResponseMessage region(string lang, string regionid) { return new LocationService().GetOneRegion(lang, regionid); }
[HttpGet] public HttpResponseMessage countries(string lang, string regionid) { return new LocationService().GetCountryList(lang, regionid); }
[HttpGet] public HttpResponseMessage country(string lang, string countryid) { return new LocationService().GetOneCountry(lang, countryid); }
[HttpGet] public HttpResponseMessage cities(string lang, string countryid) { return new LocationService().GetCityList(lang, countryid); }
[HttpGet] public HttpResponseMessage city(string lang, string cityid) { return new LocationService().GetOneCity(lang, cityid); }
} }
|