public abstract int CreateUpdateDeleteCensor( Censor censor, DataProviderAction action );
private static int CreateUpdateDeleteCensor( Censor censor, DataProviderAction action ) { CSCache.Remove(CacheKey); CommonDataProvider dp = CommonDataProvider.Instance(); return dp.CreateUpdateDeleteCensor( censor, action ); }
public static Censor PopulateCenshorFromIDataReader( IDataReader dr ) { Censor censorship = new Censor(); censorship.Replacement = Convert.ToString(dr["Replacement"]); censorship.Word = Convert.ToString(dr["Word"]); return censorship; }
public static int UpdateCensor( Censor censor ) { CSCache.Remove(CacheKey); return CreateUpdateDeleteCensor( censor, DataProviderAction.Update); }