public async Task <IActionResult> GetById(int id)
        {
            var place = await _placeRepository.GetById(id);

            if (place == null)
            {
                return(NotFound());
            }

            return(Ok(place));
        }
Ejemplo n.º 2
0
 public Place GetPlace(Guid placeId) => placeRep.GetById(placeId);