/// <summary> /// 判断登录 /// </summary> /// <param name="model">根据邮箱和密码判断</param> /// <returns>bool</returns> public bool CheckLogin(Me model) { String sql = String.Format("select count(1) from Me where myEmail='{0}' and myPassword = '******'",model.myEmail,model.myPassword); try { if (new SqlHelper().GetScalar(sql) > 0) return true; return false; } catch(Exception e) { throw e; } }
/// <summary> /// 判断登录 /// </summary> /// <param name="model">根据邮箱和密码判断</param> /// <returns>bool</returns> public bool CheckLogin(Me model) { return new DAL.MeDAL().CheckLogin(model); }