Click here to Skip to main content
15,894,646 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
how can I use given URL for email varfication in ASP.NET WEB API?

HTML
var Email="test@test.com"
var key="122";

"http://localhost:50740/api/Users/VerifyEmail/" + Email + "/" + key



when i enter into web browser, debug it

C#
[HttpGet]
public HttpResponseMessage VerifyEmail(string email, string verificationKey)
{
}

paramters of action method are always null.

in Global.asax.cs i have defined following route

C#
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.
Posted
Updated 25-Apr-12 2:49am
v2

1 solution

Hi,
Refer this[^] for the similar discussion.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900