TestController.cs

39 lines | 690 B Blame History Raw Download
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Web.Controllers
{

    public class Entity
    {
        public int id { set; get; }
        public string name { set; get; }
    }

    public class TestController : BaseApiController
    {
        [HttpPost]
        public void Test(int id, string name)
        {


        }

        //[HttpPost]
        //public void Test()
        //{
        //    var data = GetJson<Entity>();

        //    //using (var stream = HttpContext.Request.InputStream)
        //    //{
        //    //    stream.read
        //    //}

        //    int a = 2;

        //}
    }
}