// // 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)); }
public ReplayCardDto GetReplayCard(int replayId) { var replayCardDto = _replayRepository.GetReplayCard(replayId); return(replayCardDto); }