Hey all this is my code here:
View:
-Email
|-Email.cshtml
Email.cshtml:
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Email</title>
</head>
<body>
<div>
</div>
</body>
</html>
And my controller (EmailController) looks like this:
namespace BOM2017.Controllers
{
public class EmailController : Controller
{
[HttpGet]
public ActionResult Email(string action, string id)
{
return View();
}
}
}
What I am trying to do is have a user click on a link inside an email and have it load up this page and take the parameters that the link is passing and pass them into the Email.cshtml page.
http://localhost/BOM2017/Email/Email?action=d&id=5124-48g56-dd59-fr8d
However, hitting that URL above seems to do nothing but load the page up. I put a break on the return View(); and it never hits it.