예제 #1
0
        public JsonResult DetailsMount(int pcid)
        {
            var query = new GetPlayerCharacterQuery {
                PcId = pcid
            };

            var dto = SendQuery <GetPlayerCharacterQuery, PlayerCharacterDTO>(query);

            var model = _mapper.Map <PlayerCharacterDTO, PlayerCharacterModel>(dto);

            return(Json(model));
        }
예제 #2
0
        public IActionResult Details(int pcid)
        {
            var query = new GetPlayerCharacterQuery {
                PcId = pcid
            };

            var dto = SendQuery <GetPlayerCharacterQuery, PlayerCharacterDTO>(query);

            var model = _mapper.Map <PlayerCharacterDTO, PlayerCharacterModel>(dto);

            model.Abilities = _context.Ability.OrderBy(n => n.Id).ToList();
            model.Skills    = _context.Skill.OrderBy(n => n.Id).ToList();

            return(View(model));
        }