diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs
index 373cc005..57ff7c6f 100644
--- a/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs
+++ b/BMA.EHR.Placement.Service/Controllers/PlacementTransferController.cs
@@ -72,7 +72,7 @@ namespace BMA.EHR.Placement.Service.Controllers
/// ไม่ได้ Login เข้าระบบ
/// เมื่อเกิดข้อผิดพลาดในการทำงาน
[HttpGet("user")]
- public async Task> GetListByProfile(string keyword = "")
+ public async Task> GetListByProfile()
{
var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position";
using (var client = new HttpClient())
@@ -131,23 +131,23 @@ namespace BMA.EHR.Placement.Service.Controllers
p.IsActive,
})
.ToListAsync();
- if (keyword != "")
- {
- var data = placementTransfers.Where(x =>
- (x.OrganizationPositionOld != null && x.OrganizationPositionOld.Contains(keyword)) ||
- (x.rootShortNameOld != null && x.rootShortNameOld.Contains(keyword)) ||
- (x.PositionNumberOld != null && x.PositionNumberOld.Contains(keyword)) ||
- (x.posTypeNameOld != null && x.posTypeNameOld.Contains(keyword)) ||
- (x.posLevelNameOld != null && x.posLevelNameOld.Contains(keyword)) ||
- (x.Organization != null && x.Organization.Contains(keyword))
- )
- //.OrderByDescending(x => x.CreatedAt)
- // .Skip((page - 1) * pageSize)
- // .Take(pageSize)
- .ToList();
+ //if (keyword != "")
+ //{
+ // var data = placementTransfers.Where(x =>
+ // (x.OrganizationPositionOld != null && x.OrganizationPositionOld.Contains(keyword)) ||
+ // (x.rootShortNameOld != null && x.rootShortNameOld.Contains(keyword)) ||
+ // (x.PositionNumberOld != null && x.PositionNumberOld.Contains(keyword)) ||
+ // (x.posTypeNameOld != null && x.posTypeNameOld.Contains(keyword)) ||
+ // (x.posLevelNameOld != null && x.posLevelNameOld.Contains(keyword)) ||
+ // (x.Organization != null && x.Organization.Contains(keyword))
+ // )
+ // .OrderByDescending(x => x.CreatedAt)
+ // .Skip((page - 1) * pageSize)
+ // .Take(pageSize)
+ // .ToList();
- placementTransfers = data;
- }
+ // placementTransfers = data;
+ //}
return Success(placementTransfers);
}
}