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