Animierte Navbar-Anzeige für envelopeDto-Informationen hinzugefügt
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user