Esempio n. 1
0
 public IActionResult Get()
 {
     try
     {
         return(Ok(_phonebookService.Get()));
     }
     catch (Exception e)
     {
         return(StatusCode(500, new { error = e.Message }));
     }
 }