public bool Edit(DTOChiTietHDB cthdb) { SqlParameter[] sqlP = new SqlParameter[5]; sqlP[0] = new SqlParameter("@SoHDB", cthdb.SoHDB); sqlP[1] = new SqlParameter("@MaBinh", cthdb.MaBinh); sqlP[2] = new SqlParameter("@SoLuong", cthdb.SoLuong); sqlP[3] = new SqlParameter("@GiamGia", cthdb.GiamGia); sqlP[4] = new SqlParameter("@ThanhTien", cthdb.ThanhTien); return(dalGeneric.execNonQuery("updateCTHDB", sqlP)); }
public static bool Edit(DTOChiTietHDB cthdb) { return(dalChiTietHDB.Edit(cthdb)); }
public static bool Add(DTOChiTietHDB cthdb) { return(dalChiTietHDB.Add(cthdb)); }