Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public bool IsAuthenticated()
- {
- if (Session != null && Session["UserRole"] != null)
- {
- return true;
- }
- return false;
- }
- public ActionsResult Index() {
- if(!login.IsAuthenticated()){
- return RedirectToAction("Index","Login");
- }
- return View();
- }
- public ActionsResult Index() {
- if (Session == null && Session["UserRole"] == null)
- {
- return RedirectToAction("Index","Login");
- }
- return View();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement