Click here to Skip to main content
Sign Up to vote bad
good
See more: RESTASP.Net-4.0
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.
Posted 25 Apr '12 - 2:43
Edited 25 Apr '12 - 2:49


1 solution

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

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 445
1 OriginalGriff 295
2 Arun Vasu 253
3 Zoltán Zörgő 194
4 CPallini 173
0 Sergey Alexandrovich Kryukov 10,105
1 OriginalGriff 7,739
2 CPallini 4,181
3 Rohan Leuva 3,482
4 Maciej Los 2,999


Advertise | Privacy | Mobile
Web04 | 2.6.130523.1 | Last Updated 31 Jul 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid