Advertisement
Guest User

Untitled

a guest
Nov 25th, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. routes.MapRoute(
  2. name: "monPrefix",
  3. url: "{action}.mon/{id}",
  4. defaults: new { controller = "login", action = "index", id = UrlParameter.Optional }
  5. );
  6.  
  7. <modules runAllManagedModulesForAllRequests="true" />
  8.  
  9. public class loginController : Controller
  10. {
  11. public ActionResult index()
  12. {
  13. if (Session["userInfo"] == null)
  14. {
  15. return View();
  16. }
  17. else
  18. {
  19. return RedirectToAction("main");
  20. }
  21. }
  22. .
  23. .
  24. .
  25. .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement