コード例 #1
0
 /// <summary>
 ///     Check user on exist
 /// </summary>
 /// <param name="userId">User Id</param>
 /// <param name="password">Password</param>
 /// <returns>Exist user</returns>
 public virtual bool IsUserExist
 (
     int userId,
     string password
 )
 {
     using (ISelect db = new QQContext())
     {
         return(db.IsUserExist
                (
                    userId,
                    password
                ));
     }
 }
コード例 #2
0
 /// <summary>
 ///     Check user on exist
 /// </summary>
 /// <param name="login">Login</param>
 /// <param name="password">Password</param>
 /// <returns>Exist user</returns>
 public virtual bool IsUserExist
 (
     string login,
     string password
 )
 {
     using (ISelect db = new QQContext())
     {
         return(db.IsUserExist
                (
                    login,
                    password
                ));
     }
 }