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