|
@@ -150,7 +150,7 @@ namespace MTWorkHR.Application.Services
|
|
|
var user = await _userService.GetUserWithAttachmentById(item.RequestingEmployeeId);
|
|
|
if (user != null)
|
|
|
{
|
|
|
- item.Employee = new EmployeeDto { Id = item.RequestingEmployeeId, FirstName = user.FirstName, LastName = user.LastName, Email = user.Email, Position = user.Position };
|
|
|
+ item.Employee = new EmployeeDto { Id = item.RequestingEmployeeId, FirstName = user.FirstName, LastName = user.LastName, Email = user.Email, Position = !string.IsNullOrEmpty( user.Position )? user.Position : user.JobTitleName };
|
|
|
var attach = user.UserAttachments?.FirstOrDefault(a => a.AttachmentTypeId == 9);
|
|
|
item.Employee.ProfileImagePath = attach?.FilePath;
|
|
|
// if (attach != null)
|