how can I use given URL for email varfication in ASP.NET WEB API?
var Email="test@test.com"
var key="122";
"http://localhost:50740/api/Users/VerifyEmail/" + Email + "/" + key
when i enter into web browser, debug it
[HttpGet]
public HttpResponseMessage VerifyEmail(string email, string verificationKey)
{
}
paramters of action method are always null.
in Global.asax.cs i have defined following route
routes.MapHttpRoute(
name: "EmailVerification",
routeTemplate: "api/{controller}/{action}/{email}/{verificationKey}",
defaults: new { action = "VerifyEmail", email = "", verificationKey = "" }
);
basically, I want verification email to be handled which has two parameters email and key.
your response will be appreciated.