Beispiel #1
0
        private static int InsertUpdateDelete(KhachHangInfo khachHangInfo, DataProviderAction action)
        {
            int rs = DataProvider.Instance().InsertUpdateDelete(
                action,
                StoredProcedureName.InsertUpdateDelete_KhachHang,
                "@" + TableKhachHang.MaKH,
                khachHangInfo.MaKH, khachHangInfo.TenKH, khachHangInfo.DiaChi, khachHangInfo.SDT, khachHangInfo.Mail,
                (int)action);

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