public string CheckLogIn(string username, string password) { if (string.IsNullOrEmpty(username) || string.IsNullOrEmpty(password)) { return(""); } else { NhanVien nv = dal.CheckLogIn(MaHoa.Encrypt(username, true), MaHoa.Encrypt(password, true)); if (!string.IsNullOrEmpty(nv.MaNhanVien)) { return(nv.MaNhanVien); } else { return(""); } } }