public BaseRankEntity GetMyRank(string siteId, Guid managerId, int rankType) { RankHandler handler = GetHandler(siteId, rankType); if (handler != null) { return(handler.GetMyRankEntity(managerId)); } else { return(null); } }
public BaseRankEntity GetMyRank(Guid managerId, int rankType) { RankHandler handler = null; _rankHandlers.TryGetValue(rankType, out handler); if (handler != null) { return(handler.GetMyRankEntity(managerId)); } else { return(null); } }