예제 #1
0
        //
        // GET: /Replays/List
        public JsonResult Details(int replayId)
        {
            if (replayId <= 0)
            {
                return(NotFound());
            }

            var dto = _replayRepository.GetReplayCard(replayId);

            if (dto == null)
            {
                return(NotFound());
            }

            return(Json(dto, JsonRequestBehavior.AllowGet));
        }
예제 #2
0
        public ReplayCardDto GetReplayCard(int replayId)
        {
            var replayCardDto = _replayRepository.GetReplayCard(replayId);

            return(replayCardDto);
        }