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(); })); }