public static DataRow TimHH(string MaHH) { DataRow rs; try { HangHoa dao = new HangHoa(); DataTable table = dao.GetHH(MaHH); rs = table.Rows[0]; return(rs); } catch (Exception ex) { throw ex; } }
public static bool KiemTraHH(string MaHH) { try { HangHoa dao = new HangHoa(); DataTable table = dao.GetHH(MaHH); if (table.Rows.Count > 0) { return(true); } } catch (Exception ex) { throw ex; } return(false); }