I am doing a web application, with webapi and entityframework, I need to do in one part, the validation of the email, then the user registers, and receives an email with a url to activate the account of the form www.mipagina.com .ar / api / User / Activate Account / 1 1 is the id of the user that I must activate, is it okay to send it that way? And also my problem is how to receive that id I receive it in the controller, try to do something like this:
[HttpGet]
[Route("api/Industria/{paramOne}")]
public string Get(int paramOne)
{
return "recibido"+ paramOne;
}
and taking the following api web configuration
config.Routes.MapHttpRoute(
name: "ActivarEmail",
routeTemplate: "api/{controller}/{action}/{id}",
defaults: new { id = RouteParameter.Optional }
);
I want to receive the paramOne, search it in the bd, and put the account to be true, but I can not receive the parameter, I do not know how to do it, I hope you can help me. Thanks