diff options
Diffstat (limited to 'samples/RelyingPartyMvc/Controllers/HomeController.cs')
-rw-r--r-- | samples/RelyingPartyMvc/Controllers/HomeController.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/samples/RelyingPartyMvc/Controllers/HomeController.cs b/samples/RelyingPartyMvc/Controllers/HomeController.cs new file mode 100644 index 0000000..ac33185 --- /dev/null +++ b/samples/RelyingPartyMvc/Controllers/HomeController.cs @@ -0,0 +1,20 @@ +namespace RelyingPartyMvc.Controllers { + using System; + using System.Collections.Generic; + using System.Linq; + using System.Web; + using System.Web.Mvc; + + public class HomeController : Controller { + public ActionResult Index() { + Response.AppendHeader( + "X-XRDS-Location", + new Uri(Request.Url, Response.ApplyAppPathModifier("~/Home/xrds")).AbsoluteUri); + return View("Index"); + } + + public ActionResult Xrds() { + return View("Xrds"); + } + } +} |