representative

This commit is contained in:
femsci 2023-11-18 15:16:30 +01:00
parent c87330a032
commit 7536bbd31d
Signed by: femsci
GPG key ID: 08F7911F0E650C67

View file

@ -59,7 +59,7 @@
{
_employerId = (string)e.Value!;
employer = await db.Persons.AsNoTracking().SingleOrDefaultAsync(s => s.Pesel == _employerId) as IEntity ?? await
db.Companies.AsNoTracking().SingleOrDefaultAsync(s => s.Nip == _employerId);
db.Companies.AsNoTracking().Include(i => i.Representative).SingleOrDefaultAsync(s => s.Nip == _employerId);
StateHasChanged();
}