1

我正在通过 post 方法提交表单,并且请求继续控制器类我想在另一个方法中传递这个请求。如何以另一种方法传递此 Http Post 请求?这是我的表格

<form method = "Post", action = "/Home/save">
<input type = "text" name ="username" />
<input type = "submit" value = "Send">
</form>

//This is my controller Class
 public class HomeController : Controller
{
   [HttpPost]
   public String saveData()
        {
             MyClass obj = new MyClass();
             obj.saveData(Here I want to pass incoming Request);
        }

}
4

0 回答 0