query avatar placement
This commit is contained in:
parent
3d0fbdceb8
commit
d0c157ce90
12 changed files with 157 additions and 6 deletions
|
|
@ -166,6 +166,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
PathName = p.Document == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : p.Document.Id,
|
||||
p.IsActive,
|
||||
p.CreatedAt,
|
||||
Avatar = p.Profile.Avatar == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : p.Profile.Avatar.Id,
|
||||
})
|
||||
.FirstOrDefaultAsync();
|
||||
if (data == null)
|
||||
|
|
@ -198,6 +199,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
PathName = data.PathName == Guid.Parse("00000000-0000-0000-0000-000000000000") ? null : await _documentService.ImagesPath(data.PathName),
|
||||
data.IsActive,
|
||||
data.CreatedAt,
|
||||
Avatar = data.Avatar == Guid.Parse("00000000-0000-0000-0000-000000000000") ? null : await _documentService.ImagesPath(data.Avatar),
|
||||
};
|
||||
|
||||
return Success(_data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue