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

  1. using EasyBL.WebApi.Filters;
  2. using EasyBL.WEBAPP.SYS;
  3. using Entity.ShowEasyDtos;
  4. using Entity.Sugar;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Linq;
  8. using System.Net;
  9. using System.Net.Http;
  10. using System.Web;
  11. using System.Web.Http;
  12. namespace WebApp.Controllers
  13. {
  14. public class CommonController : ApiController
  15. {
  16. /// <summary>
  17. /// 獲取城市下拉選單數據
  18. /// </summary>
  19. /// <returns></returns>
  20. [HttpGet]
  21. public HttpResponseMessage GetAllCity()
  22. {
  23. return new SECommonService().GetAllCity();
  24. }
  25. /// <summary>
  26. /// 獲取類別數據
  27. /// </summary>
  28. /// <param name="argumentClassID"></param>
  29. /// <returns></returns>
  30. [HttpGet]
  31. public HttpResponseMessage GetArgumentClassList(string argumentClassID)
  32. {
  33. return new SECommonService().GetArgumentClassList(argumentClassID);
  34. }
  35. /// <summary>
  36. /// 上傳文件
  37. /// </summary>
  38. /// <param name="dto"></param>
  39. /// <returns></returns>
  40. [HttpPost]
  41. public HttpResponseMessage UploadFiles()
  42. {
  43. var c = HttpContext.Current;
  44. return new SECommonService().Upload(c);
  45. }
  46. }
  47. }