This commit is contained in:
parent
b40d4e2765
commit
0223ff5d9b
1 changed files with 8 additions and 2 deletions
|
|
@ -336,8 +336,14 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
||||||
//}
|
//}
|
||||||
if (role.Trim().ToLower() == "officer")
|
if (role.Trim().ToLower() == "officer")
|
||||||
{
|
{
|
||||||
resend.Items = (await _repository.InsigniaHasProfile(result.PeriodId, ocId, status, type))
|
/* resend.Items = (await _repository.InsigniaHasProfile(result.PeriodId, ocId, status, type))
|
||||||
.Where(x => x.ProfileType!.ToLower() == type.ToLower()).ToList();
|
.Where(x => x.ProfileType!.ToLower() == type.ToLower()).ToList();*/
|
||||||
|
var items = await _repository.InsigniaHasProfile(result.PeriodId, ocId, status, type);
|
||||||
|
|
||||||
|
resend.Items = (items ?? new List<InsigniaRequestItem>())
|
||||||
|
.Where(x => x != null && !string.IsNullOrEmpty(x.ProfileType) && x.ProfileType.ToLower() == type.ToLower())
|
||||||
|
.ToList();
|
||||||
|
|
||||||
return Success(resend);
|
return Success(resend);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue