Added the HasApplicationAccess in Employee VM

This commit is contained in:
ashutosh.nehete 2025-09-29 10:08:14 +05:30
parent cd175c4fdf
commit 27a2610388
2 changed files with 5 additions and 1 deletions

View File

@ -36,7 +36,9 @@ namespace Marco.Pms.Model.Mapper
IsRootUser = model.ApplicationUser?.IsRootUser ?? false, IsRootUser = model.ApplicationUser?.IsRootUser ?? false,
IsSystem = model.IsSystem, IsSystem = model.IsSystem,
JoiningDate = model.JoiningDate, JoiningDate = model.JoiningDate,
TenantId = model.TenantId ?? Guid.Empty TenantId = model.TenantId ?? Guid.Empty,
HasApplicationAccess = model.HasApplicationAccess,
OrganizationId = model.OrganizationId
}; };
} }
public static BasicEmployeeVM ToBasicEmployeeVMFromEmployee(this Employee employee) public static BasicEmployeeVM ToBasicEmployeeVMFromEmployee(this Employee employee)

View File

@ -25,6 +25,8 @@
public Guid TenantId { get; set; } public Guid TenantId { get; set; }
public bool IsSystem { get; set; } public bool IsSystem { get; set; }
public string? JobRole { get; set; } public string? JobRole { get; set; }
public bool HasApplicationAccess { get; set; }
public Guid OrganizationId { get; set; }
} }
} }