public ActionResult LogOut() { try { if (Session["Token"] != null) { string result = CommonCL.Instance().Logout(); } } catch (Exception ex) { } return(RedirectToAction("Index", "Home")); }
public ActionResult Index() { try { if (Session["Token"] == null) { string result = CommonCL.Instance().Login(); } } catch (Exception ex) { } return(View()); }