summaryrefslogtreecommitdiffstats
path: root/samples/OpenIdProviderMvc/Controllers/HomeController.cs
blob: 346e83843f63147348a145c6aeb5e7f0ca772720 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
namespace OpenIdProviderMvc.Controllers {
	using System;
	using System.Collections.Generic;
	using System.Linq;
	using System.Web;
	using System.Web.Mvc;

	[HandleError]
	public class HomeController : Controller {
		public ActionResult Index() {
			if (Request.AcceptTypes.Contains("application/xrds+xml")) {
				return View("Xrds");
			}

			ViewData["Message"] = "Welcome to ASP.NET MVC!";
			return View();
		}

		public ActionResult About() {
			return View();
		}

		public ActionResult Xrds() {
			return View();
		}

		public ActionResult PpidXrds() {
			return View();
		}
	}
}