Esempio n. 1
0
 public UserDTOList getUsers()
 {
     List<User> users = userfacade.getUsers();
     UserDTOList ulist = new UserDTOList();
     UserAdapter ua = new UserAdapter();
     foreach (User u in users)
     {
         ulist.Add(ua.ConvertEntitytoDTO(u));
     }
     return ulist;
 }
Esempio n. 2
0
        public UserDTOList getUsers()
        {
            List <User> users = userfacade.getUsers();
            UserDTOList ulist = new UserDTOList();
            UserAdapter ua    = new UserAdapter();

            foreach (User u in users)
            {
                ulist.Add(ua.ConvertEntitytoDTO(u));
            }
            return(ulist);
        }