/// <summary>
/// 退出登陆
/// </summary>
/// <returns></returns>
public ActionResult ExitLogin()
{
Session["uinfo"] = null;
return View("~/Views/login/Login.cshtml");
}
/// <summary>
/// 验证登陆
/// </summary>
/// <returns></returns>
[HttpPost]
public ActionResult ExeLogin(string username, string password)
{
//取出用户输入的用户名与密码
//string username = Request["username"];
//string password = Request["password"];
UserDAL ud = new UserDAL();
Users us = ud.Login(username, password);
if (us
/// 退出登陆
/// </summary>
/// <returns></returns>
public ActionResult ExitLogin()
{
Session["uinfo"] = null;
return View("~/Views/login/Login.cshtml");
}
/// <summary>
/// 验证登陆
/// </summary>
/// <returns></returns>
[HttpPost]
public ActionResult ExeLogin(string username, string password)
{
//取出用户输入的用户名与密码
//string username = Request["username"];
//string password = Request["password"];
UserDAL ud = new UserDAL();
Users us = ud.Login(username, password);
if (us