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