コード例 #1
0
        public async Task <ActionResult> Index(int Page)
        {
            var response = await _mtgService.GetCardsByPage(Page);


            response.Select(x => { x.manaCost = _conversion.ConvertToSymbol(x.manaCost); return(x); }).ToList();

            var cardList = _mapper.Map <List <CardDto> >(response);

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

            return(View(cardList));
        }