示例#1
0
        public List <TaiKhoanQuanLy> LayThongTinQuanLy()
        {
            var ql     = new bs_TaiKhoanQuanLy();
            var result = ql.GetTaiKhoanQuanLy();

            ql.Dispose();
            return(result);
        }
示例#2
0
        /// <summary>
        /// Chức năng đăng nhập
        /// </summary>
        /// <param name="usr"></param>
        /// <returns></returns>
        public bool Authentication(loginUserRequest usr)
        {
            var action = new bs_TaiKhoanQuanLy();
            var result = action.Authentication(usr);

            action.Dispose();
            return(result);
        }
示例#3
0
        public TaiKhoanQuanLy LayThongTinQuanLyTheoDK(int usrID)
        {
            bs_TaiKhoanQuanLy action = new bs_TaiKhoanQuanLy();
            var result = action.GetTaiKhoanQuanLyDK(usrID);

            action.Dispose();

            return(result);
        }
示例#4
0
        public bool XoaTaiKhoanQuanLy(int userID)
        {
            var action = new bs_TaiKhoanQuanLy();
            var result = action.XoaTaiKhoanQuanLy(userID);

            action.Dispose();

            return(result);
        }
示例#5
0
        public bool UpdateTaiKhoanQuanLy(crudUserRequest user)
        {
            var usr = new TaiKhoanQuanLy()
            {
                UsrID     = user.Id,
                TenTK     = user.TenTK,
                NgaySinh  = user.NgaySinh,
                Email     = user.Email,
                SDT       = user.SDT,
                UserName  = user.UserName,
                Password  = user.Password,
                TrangThai = user.TrangThai
            };
            var action = new bs_TaiKhoanQuanLy();
            var result = action.UpdateTaiKhoanQuanLy(usr);

            action.Dispose();

            return(result);
        }
示例#6
0
        public bool TaoTaiKhoanQuanLy(crudUserRequest usr)
        {
            var user = new TaiKhoanQuanLy()
            {
                TenTK       = usr.TenTK,
                NgaySinh    = usr.NgaySinh,
                Email       = usr.Email,
                SDT         = usr.SDT,
                UserName    = usr.UserName,
                Password    = usr.Password,
                MaPhanQuyen = 2,
                NgayTao     = DateTime.Now,
                TrangThai   = usr.TrangThai
            };
            var action = new bs_TaiKhoanQuanLy();
            var result = action.TaoTaiKhoanQuanLy(user);

            action.Dispose();

            return(result);
        }