Skip to content

Instantly share code, notes, and snippets.

@ncoblentz
Created May 22, 2013 17:06
Show Gist options
  • Save ncoblentz/5629197 to your computer and use it in GitHub Desktop.
Save ncoblentz/5629197 to your computer and use it in GitHub Desktop.
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