Animierte Navbar-Anzeige für envelopeDto-Informationen hinzugefügt

This commit is contained in:
Developer 02
2024-04-04 17:35:43 +02:00
parent 29ae546d98
commit cbb03d77ba
9 changed files with 105 additions and 65 deletions

View File

@@ -27,5 +27,21 @@ namespace EnvelopeGenerator.Infrastructure.Repositories
return await query.ToListAsync();
}
public async Task<Envelope?> ReadByUuidAsync(string uuid, bool withDocuments = false, bool withReceivers = false, bool withHistory = false)
{
var query = _dbSet.Where(e => e.Uuid == uuid);
if (withDocuments)
query = query.Include(e => e.Documents);
if (withReceivers)
query = query.Include(e => e.Receivers);
if (withHistory)
query = query.Include(e => e.History);
return await query.FirstOrDefaultAsync();
}
}
}