Automated teller machine emulation.
using System.Web;
using System.Web.Mvc;
namespace SergeyDrozdovATM.Web
{
public class Authentication : AuthorizeAttribute
{
protected override bool AuthorizeCore(HttpContextBase httpContext)
{
var authorized = httpContext.Session != null && httpContext.Session["LoggedUser"] != null;
return authorized;
}
}
}