Ejemplo n.º 1
0
        public static IHtmlString ViewUrl(this FrontUrlHelper frontUrl, string viewName, object values)
        {
            RouteValueDictionary routeValues = RouteValuesHelper.GetRouteValues(values);

            routeValues["ViewName"] = viewName;
            return(frontUrl.WrapperUrl(frontUrl.Url.Action("ViewEntry", "Page", routeValues)));
        }
Ejemplo n.º 2
0
        public static IHtmlString SubmissionUrl(this FrontUrlHelper frontUrl, string submissionName, object routeValues)
        {
            var routes = RouteValuesHelper.GetRouteValues(routeValues);

            routes["SubmissionName"] = submissionName;
            return(frontUrl.WrapperUrl(frontUrl.Url.Action("Submit", "Submission", routes)));
        }