public List <TaiKhoanQuanLy> LayThongTinQuanLy() { var ql = new bs_TaiKhoanQuanLy(); var result = ql.GetTaiKhoanQuanLy(); ql.Dispose(); return(result); }
/// <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); }
public TaiKhoanQuanLy LayThongTinQuanLyTheoDK(int usrID) { bs_TaiKhoanQuanLy action = new bs_TaiKhoanQuanLy(); var result = action.GetTaiKhoanQuanLyDK(usrID); action.Dispose(); return(result); }
public bool XoaTaiKhoanQuanLy(int userID) { var action = new bs_TaiKhoanQuanLy(); var result = action.XoaTaiKhoanQuanLy(userID); action.Dispose(); return(result); }
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); }
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); }