private static int InsertUpdateDelete(NhapHangInfo nhapHangInfo, DataProviderAction action) { int rs = DataProvider.Instance().InsertUpdateDelete( action, StoredProcedureName.InsertUpdateDelete_NhapHang, "@" + TableNhapHang.MaPhieuNhap, nhapHangInfo.MaPhieuNhap, nhapHangInfo.MaNV, nhapHangInfo.TongSoLuong, nhapHangInfo.NgayNhap, nhapHangInfo.NhaCC, nhapHangInfo.DienThoaiNCC, nhapHangInfo.DiaChiNhaCC, (int)action); if (rs > 0 && Cache) { DataCache.RemoveCache(Key); } return(rs); }
public static int Delete(NhapHangInfo nhapHangInfo) { return(InsertUpdateDelete(nhapHangInfo, DataProviderAction.Delete)); }