หาสังกัดของเครื่องราช
This commit is contained in:
parent
ae488fcfdb
commit
19c689f9b6
1 changed files with 9 additions and 1 deletions
|
|
@ -1006,7 +1006,15 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
|||
.Where(x => x.OrganizationPosition.Organization.OrganizationAgencyId != null)
|
||||
.Select(x => x.OrganizationPosition.Organization.OrganizationAgencyId)
|
||||
.FirstOrDefaultAsync();
|
||||
|
||||
if (orgProfile == null)
|
||||
{
|
||||
orgProfile = await _context.ProfilePositions
|
||||
.Where(x => x.Profile == profile)
|
||||
.Where(x => x.OrganizationPosition != null)
|
||||
.Where(x => x.OrganizationPosition.Organization != null)
|
||||
.Select(x => x.OrganizationPosition.Organization.Id)
|
||||
.FirstOrDefaultAsync();
|
||||
}
|
||||
return Success(orgProfile);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue