[HttpGet] [Route("{id:Guid}")] public async Task<IActionResult> GetById ( [FromRoute] Guid Id ) { var walkDomainModel = await walkRepository.GetByIdAsync(Id); if (walkDomainModel == null) { return NotFound(); } var walkDto = mapper.Map<WalkDto>(walkDomainModel); return Ok(walkDto); }