public static DataRow TimNV(string MaNV) { DataRow rs; try { NhanVien dao = new NhanVien(); DataTable table = dao.GetNV(MaNV); rs = table.Rows[0]; return(rs); } catch (Exception ex) { throw ex; } }
public static bool KiemTraNV(string MaNV) { try { NhanVien dao = new NhanVien(); DataTable table = dao.GetNV(MaNV); if (table.Rows.Count > 0) { return(true); } } catch (Exception ex) { throw ex; } return(false); }