This means:
Public Function GetMyEmployeeId() As Integer()
Return New Integer() {Current.HomepageUserId}
End Function
To be honest, you need to get back to basics:
Arrays in VB[
^]
If you want to return single value, your function should looks like:
Public Function GetMyEmployeeId() As Integer
Return DashboardInfo(EmployeeIds).LevelList().Where(Function(x) x=Current.HomepageUserId).Select(Function(x) Convert.ToInteger(x.HomepageId))
End Function
where
Where(Function(x) x.HomepageUserId=Current.HomepageUserId)
is Linq function which searches the list of
EmployeeIds
to return
HompageId
Note: i do not know your entity model, so you need to change it to your needs.
For further information, please see:
Convert.ToInt32 Method (String)[
^]
Introduction to LINQ in Visual Basic[
^]