示例#1
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);
        }
示例#2
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);
        }