Пример #1
0
        private static int InsertUpdateDelete(ChiTietTraHangInfo chiTietTraHangInfo, DataProviderAction action)
        {
            int rs = DataProvider.Instance().InsertUpdateDelete(
                action,
                StoredProcedureName.InsertUpdateDelete_ChiTietTraHang,
                "",
                chiTietTraHangInfo.MaPhieuTra, chiTietTraHangInfo.MaHH, chiTietTraHangInfo.SoLuong,
                (int)action);

            if (rs > 0 && Cache)
            {
                DataCache.RemoveCache(Key);
            }
            return(rs);
        }
Пример #2
0
 public static int Delete(ChiTietTraHangInfo chiTietTraHangInfo)
 {
     return(InsertUpdateDelete(chiTietTraHangInfo, DataProviderAction.Delete));
 }