MVC WebApi 接收数据 Post

如题,可以直接 Model 接收:

  [HttpPost]

  public ActionResult FunctionName(ViewModel.NameModel NameModel) {

    string Model=NameModel.ToString();

    string Model_Funtion=NameModel.Function1.ToString());

    return View("");

posted @ 2018-04-18 17:20  PengRay  阅读(482)  评论(0编辑  收藏  举报