这是我想调用的方法:
[AcceptVerbs(HttpVerbs.Post)]
public string MyPostMethod(int i)
{ ... }
我想从同一个控制器中的另一个方法调用它:
[AcceptVerbs(HttpVerbs.Get)]
public string MyOtherMethod(int i)
{ MyPostMethod(i); }
有没有办法做到这一点?
这是我想调用的方法:
[AcceptVerbs(HttpVerbs.Post)]
public string MyPostMethod(int i)
{ ... }
我想从同一个控制器中的另一个方法调用它:
[AcceptVerbs(HttpVerbs.Get)]
public string MyOtherMethod(int i)
{ MyPostMethod(i); }
有没有办法做到这一点?