WebApi的IhttpActionresult和HttpResponseMessage的用法
[HttpGet]
[HttpPost]
public IHttpActionResult getModel([FromBody] Student Test )
{
Test.Name = Test.Name + "webapi";
return Json<Student>(Test);
}
[HttpGet]
[HttpPost]
public HttpResponseMessage getModel1()
{
return new HttpResponseMessage { Content = new StringContent("123")};
}