[HttpGet("{id}")]//ROUTE public IActionResult GetHobby(int id) { var hobby = _hobbyService.Get(id); var hobbyDto = _mapper.Map <HobbyDto>(hobby); return(Ok(hobbyDto)); }
[HttpGet("{id}")]//ROUTE public IActionResult GetHobby(int id) { var hobby = _hobbyService.Get(id); var hobbyDto = _mapper.Map <HobbyDto>(hobby); return(Ok(hobbyDto)); }