Advertisement
Guest User

Untitled

a guest
Apr 27th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. Public Class pUsers
  2.  
  3. Public Property UserId() As Long
  4. Public Property Username() As String
  5. Public Property Password() As String
  6. Public Property Email() As String
  7. Public Property Cell() As String
  8. Public Property DateCreated() As Date
  9. Public Property LastLogin() As DateTime
  10.  
  11. End Class
  12.  
  13. Public Function findAllUsers() As List(Of pUsers) Implements IServiceAPIServer.findAllUsers
  14. Using mde As New AllMyAPIEntities()
  15. Return mde.UserEntities.[Select](Function(ue) New pUsers() With {
  16. .UserId = ue.UserId,
  17. .Cell = wrapper.DecryptData(ue.Cell),
  18. .DateCreated = ue.DateCreated,
  19. .Email = wrapper.DecryptData(ue.Email),
  20. .LastLogin = ue.LastLogin,
  21. .Password = ue.Password,
  22. .Username = wrapper.DecryptData(ue.Username)}).ToList()
  23. End Using
  24. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement