fix: Füge try-catch-Blöcke zur Fehlerbehandlung in der Delete-Methode und dem Service hinzu

This commit is contained in:
Developer 02 2024-08-21 17:11:45 +02:00
parent 1673ea81df
commit c7a4ef4722

View File

@ -39,10 +39,10 @@ namespace EnvelopeGenerator.GeneratorAPI.Controllers
return StatusCode(StatusCodes.Status500InternalServerError);
});
}
catch
catch(Exception ex)
{
_logger.LogError(ex, "{Message}", ex.Message);
return StatusCode(500);
return StatusCode(StatusCodes.Status500InternalServerError);
}
}