Example #1
0
 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));
 }
Example #2
0
 public static bool Edit(DTOChiTietHDB cthdb)
 {
     return(dalChiTietHDB.Edit(cthdb));
 }
Example #3
0
 public static bool Add(DTOChiTietHDB cthdb)
 {
     return(dalChiTietHDB.Add(cthdb));
 }