This commit is contained in:
@@ -98,7 +98,14 @@ namespace AyaNova.Biz
|
||||
//
|
||||
internal async Task<Contract> GetAsync(long id, bool logTheGetEvent = true)
|
||||
{
|
||||
var ret = await ct.Contract.AsNoTracking().SingleOrDefaultAsync(m => m.Id == id);
|
||||
var ret = await ct.Contract
|
||||
.Include(z => z.ContractPartOverrideItems)
|
||||
.Include(z => z.ContractServiceRateOverrideItems)
|
||||
.Include(z => z.ContractTravelRateOverrideItems)
|
||||
.Include(z => z.ServiceRateItems)
|
||||
.Include(z => z.TravelRateItems)
|
||||
.AsNoTracking()
|
||||
.SingleOrDefaultAsync(m => m.Id == id);
|
||||
if (logTheGetEvent && ret != null)
|
||||
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserId, id, BizType, AyaEvent.Retrieved), ct);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user