public IActionResult GetHerosByTrainer([FromRoute] int TrainerId) { var heros = _trainerService.GetHerosByTrainer(TrainerId); var res = _mapper.Map <IEnumerable <HeroModel> >(heros); return(Ok(res)); }