public async Task <IActionResult> GetById(int id) { var place = await _placeRepository.GetById(id); if (place == null) { return(NotFound()); } return(Ok(place)); }
public Place GetPlace(Guid placeId) => placeRep.GetById(placeId);