예제 #1
0
        private static int InsertUpdateDelete(BaoHanhInfo baoHanhInfo, DataProviderAction action)
        {
            int rs = DataProvider.Instance().InsertUpdateDelete(
                action,
                StoredProcedureName.InsertUpdateDelete_BaoHanh,
                "@" + TableBaoHanh.SoPhieu,
                baoHanhInfo.SoPhieu, baoHanhInfo.MaHH, baoHanhInfo.SoEmei, baoHanhInfo.MaKH, baoHanhInfo.NgayMua, baoHanhInfo.ThoiGianBaoHanh,
                (int)action);

            if (rs > 0 && Cache)
            {
                DataCache.RemoveCache(Key);
            }
            return(rs);
        }
예제 #2
0
 public static int Delete(BaoHanhInfo baoHanhInfo)
 {
     return(InsertUpdateDelete(baoHanhInfo, DataProviderAction.Delete));
 }