Action正常跳转
点击下载APP
public ActionResult AppDownload()
{
return View();
}
RouteUrl路由跳转
加好友
路由配置
//推荐注册,是一种Get的传参方式
routes.MapLocalizedRoute("RecommandRegister",
"r{recommandId}",
new { controller = "Customer", action = "RecommandRegister" },
new { recommandId = @"[0-9]+"},
new[] { "Nop.Web.Controllers" });
其实跳转的地址是
public ActionResult RecommandRegister(int recommandId)
{
var recommandCustomer = _customerService.GetCustomerById(recommandId);
if (null != recommandCustomer)
{
ViewData["RecommandId"] = recommandId;
ViewData["Recommand"] = GetEnctyPhoneNO(recommandCustomer.Username);
}
return View();
}
本文转自TBHacker博客园博客,原文链接:http://www.cnblogs.com/jiqing9006/p/7088933.html,如需转载请自行联系原作者