Beispiel #1
0
        public void AddUser(UserUI userUI)
        {
            User user = new User()
            {
                Id = userUI.Id, Balance = userUI.Balance, Login = userUI.Login, Password = userUI.Password
            };

            _WCF.AddUser(user);
        }
Beispiel #2
0
        public void AddUser(UserUI userUI)
        {
            User user = new User()
            {
                ID          = userUI.ID,
                Favourite   = userUI.Favourite.ToArray(),
                IsAdmin     = userUI.IsAdmin,
                Login       = userUI.Login,
                Name        = userUI.Name,
                Password    = userUI.Password,
                PhoneNumber = userUI.PhoneNumber
            };

            _WCF.AddUser(user);
        }