X2D1CgController.cs 603 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Web.Http;
  7. using XdCxRhDW.App.WebAPI.DTO;
  8. namespace XdCxRhDW.App.WebAPI
  9. {
  10. public class X2D1CgController : ApiController
  11. {
  12. [HttpGet]
  13. public Test Get()
  14. {
  15. return new Test() { Msg = "http get接口测试成功" };
  16. // return "Hi!, Self-Hosted Web Api Application Get";
  17. }
  18. public string Get(int id)
  19. {
  20. return $"Hi!, Self-Hosted Web Api Application Get With Id:{id} ";
  21. }
  22. }
  23. }