Example #1
0
        private static int InsertUpdateDelete(BangGiaInfo bangGiaInfo, DataProviderAction action)
        {
            int rs = DataProvider.Instance().InsertUpdateDelete(
                action,
                StoredProcedureName.InsertUpdateDelete_BangGia,
                "@" + TableBangGia.SoBangGia,
                bangGiaInfo.SoBangGia, bangGiaInfo.MaHH, bangGiaInfo.GiaBan, bangGiaInfo.NgayApDung, bangGiaInfo.NgayKetThuc, bangGiaInfo.GiamGia,
                (int)action);

            if (rs > 0 && Cache)
            {
                DataCache.RemoveCache(Key);
            }
            return(rs);
        }
Example #2
0
 public static int Delete(BangGiaInfo bangGiaInfo)
 {
     return(InsertUpdateDelete(bangGiaInfo, DataProviderAction.Delete));
 }