📜  模型内的 URL.Action - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:12.477000             🧑  作者: Mango

代码示例1
var urlHelper= new System.Web.Mvc.UrlHelper(HttpContext.Current.Request.RequestContext);
string absUrl = urlHelper.Action("MyProfile", "User",new { @Id = Model.UserId, name = Model.NickName }, Request.Url.Scheme);