Created
May 22, 2013 17:06
-
-
Save ncoblentz/5629197 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Web.Mvc; | |
namespace Mvc4WithAuthentication.Controllers | |
{ | |
[Mvc4WithAuthentication.Auth.CoupleSessionAndFormsAuth()] | |
public class HomeController : Controller | |
{ | |
public ActionResult Index() | |
{ | |
ViewBag.Message = "Modify this template to jump-start your ASP.NET MVC application."; | |
Session["test"]="test"; | |
return View(); | |
} | |
public ActionResult About() | |
{ | |
ViewBag.Message = "Your app description page."; | |
return View(); | |
} | |
public ActionResult Contact() | |
{ | |
ViewBag.Message = "Your contact page."; | |
return View(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment