Example #1
0
 public async Task <IActionResult> Delete(int id)
 {
     logger.LogInformation("{username} executed Delete({id}).", User.Identity.Name, id);
     return(await TryOrError(logger, async() =>
     {
         await service.DeleteLoanAsync(id);
         return new NoContentResult();
     }));
 }