using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web.Http; using XdCxRhDW.App.WebAPI.DTO; namespace XdCxRhDW.App.WebAPI { public class X2D1CgController : ApiController { [HttpGet] public Test Get() { return new Test() { Msg = "http get接口测试成功" }; // return "Hi!, Self-Hosted Web Api Application Get"; } public string Get(int id) { return $"Hi!, Self-Hosted Web Api Application Get With Id:{id} "; } } }