Exemplo n.º 1
0
 private UserXML CreateUser(int userId, string firstName, string lastName, DateTime birthdate, string adress, string city, int postcode, string pseudo, string password, int phoneNumber, string Photo)
 {
     UserXML u = new UserXML()
     {
         Adress = adress,
         Birthdate = birthdate,
         City = city,
         FirstName = firstName,
         LastName = lastName,
         Password = password,
         PhoneNumber = phoneNumber,
         PhotoPath = Photo,
         Photo = _img.ImageCoverter(_img.LoadImage(Photo)),
         Postcode = postcode,
         Pseudo = pseudo,
         UserId = userId
     };
     return u;
 }
Exemplo n.º 2
0
        private UserXML CreateUser(User user)
        {

            UserXML u = new UserXML()
            {
                Adress = user.Adress,
                Birthdate = user.Birthdate,
                City = user.City,
                FirstName = user.FirstName,
                LastName = user.LastName,
                Password = user.Password,
                PhoneNumber = user.PhoneNumber,
                PhotoPath = user.Photo,
                Photo = _img.ImageCoverter(_img.LoadImage(user.Photo)),
                Postcode = user.Postcode,
                Pseudo = user.Pseudo,
                UserId = user.UserId
            };
            return u;
        }