Пример #1
0
 public ActionResult LogOut()
 {
     try
     {
         var userAccount = new UserSummary
         {
             UserName = UserInfo.UserName,
             Password = null,
             LastLoginTime = DateTime.Now
         };
         Clear();
     }
     catch (Exception ex)
     {
         LogService.Log("LogOut-失败", ex.ToString());
     }
     return Redirect("/mobile/user/index");
 }
Пример #2
0
 public RedirectResult LogOut()
 {
     try
     {
         var userAccount = new UserSummary
         {
             UserName = UserInfo.UserName,
             Password = null,
             LastLoginTime = DateTime.Now
         };
         Cookie.Save("UserAccount", userAccount.ToJson());
         Clear();
     }
     catch (Exception ex)
     {
         LogService.Log("LogOut-失败", ex.ToString());
     }
     return Redirect("/m/account/login");
 }