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.
 
 
 
 
 

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