Пример #1
0
        private static int InsertUpdateDelete(ChiTietHoaDonInfo chiTietHoaDonInfo, DataProviderAction action)
        {
            int rs = DataProvider.Instance().InsertUpdateDelete(
                action,
                StoredProcedureName.InsertUpdateDelete_ChiTietHoaDon,
                "",
                chiTietHoaDonInfo.MaKH, chiTietHoaDonInfo.MaHH, chiTietHoaDonInfo.SoLuong, chiTietHoaDonInfo.GiaBan,
                (int)action);

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