public async Task <IActionResult> Update(int id, Place model) { var place = await _placeRepository.GetById(model.Id); if (place == null) { return(NotFound()); } var updated = await _placeRepository.Update(model); return(Ok(updated)); }