public Hobby GetById(int id) { return(_repository.GetById(id)?.ToClient()); }
public IActionResult GetById(int id) { return(Ok(_repository.GetById(id))); }