private static int CreateUpdateDeleteRank( Rank rank, DataProviderAction action ) { CSCache.Remove("RanksKey"); CommonDataProvider dp = CommonDataProvider.Instance(); return dp.CreateUpdateDeleteRank( rank, action ); }
public abstract int CreateUpdateDeleteRank( Rank rank, DataProviderAction action );
public static Rank PopulateRankFromIDataReader( IDataReader dr ) { Rank rank = new Rank(); rank.PostingCountMaximum = Convert.ToInt32(dr["PostingCountMax"]); rank.PostingCountMinimum = Convert.ToInt32(dr["PostingCountMin"]); rank.RankIconUrl = Convert.ToString(dr["RankIconUrl"]); rank.RankId = Convert.ToInt32(dr["RankId"]); rank.RankName = Convert.ToString(dr["RankName"]); return rank; }
public static int UpdateRank( Rank rank ) { return CreateUpdateDeleteRank( rank, DataProviderAction.Update); }