Assuming I have User Model as :-
public class User{
prop UserId
prop Name
}
Now my Controller is :-
public class MyController: AsyncController
{
[HttpPost]
public void Add(User user)
{
}
[HttpPut]
public void UpdateUser(User user)
{
}
}
Now, I use fiddler and I can successfully post data to my Add()
but not to PUT method.
Error:- Method not allowed
I have wasted my day with this issue, searched stackoverflow
and googled around, but couldn't get it working... I am not getting the solution.
-ve votes
are highly appreciated with some comments. Please