Пример #1
0
        //Phương thức kiểm tra User
        public SqlDataReader CheckUser(string Username)
        {
            db = new DBLib();
            try
            {
                db.AddParameter("@Username", Username);
                return db.ExecuteReader("sp_CheckUser", CommandType.StoredProcedure);
            }
            catch (Exception)
            {

                throw;
            }
        }
Пример #2
0
 public SqlDataReader selectUserDetailsByID(int IdUser)
 {
     db = new DBLib();
     try
     {
         db.AddParameter("@IdUser", IdUser);
         return db.ExecuteReader("sp_SelectUserDetailsByID", CommandType.StoredProcedure);
     }
     catch (Exception)
     {
         throw;
     }
 }