summaryrefslogtreecommitdiffstats
path: root/projecttemplates/MvcRelyingParty/Code/Extensions.cs
blob: 4af5413554c8d1b71079d0dac689c08d0f704f7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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));
		}
	}
}