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