Exemplo n.º 1
0
        public CrossladderMatchResponse GetMatch(Guid managerId, Guid matchId)
        {
            var match = MemcachedFactory.LadderMatchClient.Get <CrossladderMatchEntity>(matchId);

            if (match == null)
            {
                match = CrossladderMatchMgr.GetById(matchId);
                if (match == null)
                {
                    return(ResponseHelper.InvalidParameter <CrossladderMatchResponse>());
                }
            }
            var response = ResponseHelper.CreateSuccess <CrossladderMatchResponse>();

            response.Data = match;
            return(response);
        }