summaryrefslogtreecommitdiffstats
path: root/samples/RelyingPartyMvc/Controllers/HomeController.cs
blob: 15ae689a5889fc1cd6321bfd08503d936324b4e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace RelyingPartyMvc.Controllers {
	public class HomeController : Controller {
		public void Index() {
			Response.AppendHeader("X-XRDS-Location",
				new Uri(Request.Url, Response.ApplyAppPathModifier("~/Home/xrds")).AbsoluteUri);
			RenderView("Index");
		}
		public void Xrds() { RenderView("Xrds"); }
	}
}