public static bool isBelongToNSX(string maHang, string maNSX) { HangHoaDAL dAL = new HangHoaDAL(); var data = dAL.GetInfoHangHoaByID(maHang); if (String.Compare(Convert.ToString(data?.Rows[0][7]), maNSX) == 0) { return(true); } return(false); }
public static bool isBelongToNSX(string maHang, string maNSX) { HangHoaDAL dAL = new HangHoaDAL(); var data = dAL.GetInfoHangHoaByID(maHang); if (String.Compare(Convert.ToString(data?.Rows[0][7]), maNSX) == 0) { return(true); } return(false); }