
Untitled
By: a guest on
May 9th, 2012 | syntax:
None | size: 0.72 KB | hits: 16 | expires: Never
Can't find view even though it's there, it's not looking for the correct extension
[HttpGet]
[ActionName("Unsubscribe")]
public ActionResult UnsubscribeGet(string maskedId)
{
return View("Unsubscribe", maskedId);
}
routes.MapRoute(
"", // Route name
"Unsubscribe/{maskedId}", // URL with parameters
new { controller = "Account", action = "Unsubscribe" });
[HttpGet]
[ActionName("Unsubscribe")]
public ActionResult UnsubscribeGet(string maskedId)
{
return View("Unsubscribe", new UnsubscribeViewModel { MaskedId = maskedId } );
}
protected internal ViewResult View(
string viewName,
string masterName
)
return View("Unsubscribe", (object) maskedId);