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)); }
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)); }