refactor(ReadOnlyController): Globale try-catch-Anweisungen entfernen
This commit is contained in:
parent
903e4678ed
commit
9c6135d208
@ -36,8 +36,6 @@ namespace EnvelopeGenerator.Web.Controllers
|
||||
[Authorize(Roles = ReceiverRole.FullyAuth)]
|
||||
[Obsolete("Use MediatR")]
|
||||
public async Task<IActionResult> CreateAsync([FromBody] EnvelopeReceiverReadOnlyCreateDto createDto)
|
||||
{
|
||||
try
|
||||
{
|
||||
//set AddedWho
|
||||
var authReceiverMail = this.GetAuthReceiverMail();
|
||||
@ -97,11 +95,5 @@ namespace EnvelopeGenerator.Web.Controllers
|
||||
return StatusCode(StatusCodes.Status500InternalServerError);
|
||||
});
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
_logger.LogError(ex, "{Message}", ex.Message);
|
||||
return StatusCode(StatusCodes.Status500InternalServerError);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user