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