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.
 
 
 
 
 

55 lines
1.4 KiB

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