summaryrefslogtreecommitdiffstats
path: root/projecttemplates/MvcRelyingParty/Code/Extensions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'projecttemplates/MvcRelyingParty/Code/Extensions.cs')
-rw-r--r--projecttemplates/MvcRelyingParty/Code/Extensions.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/projecttemplates/MvcRelyingParty/Code/Extensions.cs b/projecttemplates/MvcRelyingParty/Code/Extensions.cs
new file mode 100644
index 0000000..4af5413
--- /dev/null
+++ b/projecttemplates/MvcRelyingParty/Code/Extensions.cs
@@ -0,0 +1,17 @@
+namespace MvcRelyingParty {
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Web;
+ using System.Web.Mvc;
+
+ internal static class Extensions {
+ internal static Uri ActionFull(this UrlHelper urlHelper, string actionName) {
+ return new Uri(HttpContext.Current.Request.Url, urlHelper.Action(actionName));
+ }
+
+ internal static Uri ActionFull(this UrlHelper urlHelper, string actionName, string controllerName) {
+ return new Uri(HttpContext.Current.Request.Url, urlHelper.Action(actionName, controllerName));
+ }
+ }
+}