Ejemplo n.º 1
0
 /// <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;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 判断登录
 /// </summary>
 /// <param name="model">根据邮箱和密码判断</param>
 /// <returns>bool</returns>
 public bool CheckLogin(Me model)
 {
     return new DAL.MeDAL().CheckLogin(model);
 }