Exemplo n.º 1
0
        private static int InsertUpdateDelete(TraHangInfo traHangInfo, DataProviderAction action)
        {
            int rs = DataProvider.Instance().InsertUpdateDelete(
                action,
                StoredProcedureName.InsertUpdateDelete_TraHang,
                "@" + TableTraHang.MaPhieuTra,
                traHangInfo.MaPhieuTra, traHangInfo.MaNV, traHangInfo.TongSoLuong, traHangInfo.NgayTra, traHangInfo.NhaCC, traHangInfo.DienThoaiNCC, traHangInfo.DiaChiNhaCC,
                (int)action);

            if (rs > 0 && Cache)
            {
                DataCache.RemoveCache(Key);
            }
            return(rs);
        }
Exemplo n.º 2
0
 public static int Delete(TraHangInfo traHangInfo)
 {
     return(InsertUpdateDelete(traHangInfo, DataProviderAction.Delete));
 }