Add LeaveRange to Result

This commit is contained in:
Suphonchai Phoonsawat 2024-01-23 12:39:35 +07:00
parent c031311429
commit 8f278b608d
2 changed files with 4 additions and 1 deletions

View file

@ -1072,7 +1072,8 @@ namespace BMA.EHR.Leave.Service.Controllers
Position = profile.Position == null ? "" : profile.Position.Name,
Level = profile.PositionLevel == null ? "" : profile.PositionLevel.Name,
Agency = agency == null ? "" : agency.Name,
Org = gov_agency == null ? "" : gov_agency.Name
Org = gov_agency == null ? "" : gov_agency.Name,
LeaveRange = item.LeaveRange ?? "ALL"
};
result.Add(res);
}

View file

@ -27,5 +27,7 @@
public string Position { get; set; } = string.Empty;
public string Level { get; set; } = string.Empty;
public string LeaveRange { get; set; } = string.Empty;
}
}