private static int InsertUpdateDelete(ChiTietNhapHangInfo chiTietNhapHangInfo, DataProviderAction action) { int rs = DataProvider.Instance().InsertUpdateDelete( action, StoredProcedureName.InsertUpdateDelete_ChiTietNhapHang, "", chiTietNhapHangInfo.MaPhieuNhap, chiTietNhapHangInfo.MaHH, chiTietNhapHangInfo.SoLuong, chiTietNhapHangInfo.DonGia, chiTietNhapHangInfo.ThanhTien, (int)action); if (rs > 0 && Cache) { DataCache.RemoveCache(Key); } return(rs); }
public static int Delete(ChiTietNhapHangInfo chiTietNhapHangInfo) { return(InsertUpdateDelete(chiTietNhapHangInfo, DataProviderAction.Delete)); }