public async Task <IActionResult> DeleteAsync(string id) { var ledger = _ledgerService.Find(id); var owner = Auth.GetUser(User.Claims); _logger.LogInformation("Deleting id {Id} for user {User}", id, owner); if (ledger == null) { _logger.LogWarning("Id {Id} for user {User} not found", id, owner); return(NotFound()); } await _ledgerService.Delete(id); return(NoContent()); }