Example #1
0
        //Phương thức lấy dữ liệu từ bảng
        public DataTable selectUserDetails()
        {
            dalUsers = new UsersDAL();

            try
            {
                return dalUsers.selectUserDetails();
            }
            catch (Exception)
            {
                throw;
            }
        }
Example #2
0
        //Phương thức xóa dữ liệu bảng Khoa
        public bool DeleteUser(int IdUser)
        {
            dalUsers = new UsersDAL();

            try
            {
                return dalUsers.DeleteUser(IdUser);
            }
            catch (Exception)
            {
                throw;
            }
        }
Example #3
0
        //Phương thức thêm dữ liệu vào bảng Khoa
        public bool InsertUser(UsersDTO dtoUsers)
        {
            dalUsers = new UsersDAL();

            try
            {
                return dalUsers.InsertUser(dtoUsers);
            }
            catch (Exception)
            {
                throw;
            }
        }
Example #4
0
        //Phương thức kiểm tra User
        public SqlDataReader CheckUser(string Username)
        {
            dalUsers = new UsersDAL();
            try
            {
                return dalUsers.CheckUser(Username);
            }
            catch (Exception)
            {

                throw;
            }
        }
Example #5
0
        public SqlDataReader selectUserDetailsByID(int IdUser)
        {
            dalUsers = new UsersDAL();

            try
            {
                return dalUsers.selectUserDetailsByID(IdUser);
            }
            catch (Exception)
            {
                throw;
            }
        }