Merge branch 'develop' into working
This commit is contained in:
commit
e5699ea046
2 changed files with 5 additions and 0 deletions
|
|
@ -233,6 +233,7 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
p.Id,
|
||||
PrefixId = p.Profile.Prefix == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : p.Profile.Prefix.Id,
|
||||
Prefix = p.Profile.Prefix == null ? null : p.Profile.Prefix.Name,
|
||||
AvatarId = p.Profile.Avatar == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : p.Profile.Avatar.Id,
|
||||
p.Profile.FirstName,
|
||||
p.Profile.LastName,
|
||||
ProfileId = p.Profile.Id,
|
||||
|
|
@ -270,6 +271,7 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
{
|
||||
data.Id,
|
||||
data.ProfileId,
|
||||
AvataPath = data.AvatarId == Guid.Parse("00000000-0000-0000-0000-000000000000") ? null : await _documentService.ImagesPath(data.AvatarId),
|
||||
data.PrefixId,
|
||||
data.Prefix,
|
||||
data.FirstName,
|
||||
|
|
|
|||
|
|
@ -215,6 +215,9 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
.FirstOrDefaultAsync(x => x.Id == req.ProfileId);
|
||||
if (profile == null)
|
||||
return Error(GlobalMessages.DataNotFound, 404);
|
||||
profile.LeaveDate = DateTime.Now;
|
||||
profile.IsLeave = true;
|
||||
profile.LeaveReason = "DEATH";
|
||||
|
||||
var retirementDeceased = new RetirementDeceased
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue