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;
using System.Web.Http;
namespace WebApp.Controllers
{
public class CommonController : ApiController
{
///
/// 獲取城市下拉選單數據
///
///
[HttpGet]
public HttpResponseMessage GetAllCity()
{
return new SECommonService().GetAllCity();
}
///
/// 獲取類別數據
///
///
///
[HttpGet]
public HttpResponseMessage GetArgumentClassList(string argumentClassID)
{
return new SECommonService().GetArgumentClassList(argumentClassID);
}
///
/// 上傳文件
///
///
///
[HttpPost]
public HttpResponseMessage UploadFiles()
{
var c = HttpContext.Current;
return new SECommonService().Upload(c);
}
}
}