示例#1
0
 public IActionResult GetAllSignatures()
 {
     try
     {
         var signatures = _signatureService.GetAll();
         _logger.LogInfo($"Returned all signatures from database.");
         return(Ok(signatures));
     }
     catch (Exception ex)
     {
         _logger.LogError($"Something went wrong inside GetAllSignatures action: {ex.Message}");
         return(StatusCode(500, "Internal server error"));
     }
 }