Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Class pUsers
- Public Property UserId() As Long
- Public Property Username() As String
- Public Property Password() As String
- Public Property Email() As String
- Public Property Cell() As String
- Public Property DateCreated() As Date
- Public Property LastLogin() As DateTime
- End Class
- Public Function findAllUsers() As List(Of pUsers) Implements IServiceAPIServer.findAllUsers
- Using mde As New AllMyAPIEntities()
- Return mde.UserEntities.[Select](Function(ue) New pUsers() With {
- .UserId = ue.UserId,
- .Cell = wrapper.DecryptData(ue.Cell),
- .DateCreated = ue.DateCreated,
- .Email = wrapper.DecryptData(ue.Email),
- .LastLogin = ue.LastLogin,
- .Password = ue.Password,
- .Username = wrapper.DecryptData(ue.Username)}).ToList()
- End Using
- End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement