예제 #1
0
 /// <summary>
 /// 开发者登陆
 /// </summary>
 public ActionResult LoginByDev()
 {
     try
     {
         SessionHelper.AddSessionUser(_app.LoginByDev());
         return(RedirectToAction("Index", "Home"));
     }
     catch (Exception e)
     {
         return(View(e.Message));
     }
 }
예제 #2
0
 /// <summary>
 /// 开发者登陆
 /// </summary>
 public ActionResult LoginByDev()
 {
     try
     {
         _app.LoginByDev();
         return(RedirectToAction("Index", "Home"));
     }
     catch (Exception e)
     {
         return(RedirectToAction("Index", "Login"));
     }
 }