public void CreateNewUser() { var user = new User(); user.Login = "******"; user.Password = "******"; user.CreatedDate = DateTime.Now; user.UpdateDate = DateTime.Now; var userService = new UserServiceClient(); userService.Add(user); }
public bool SignUpExecute() { if (SignUpCanExecute) { //Request to the server var userId = _userService.Add(_userInfo); if (userId != Guid.Empty) { return(true); //Window.CurrentView = new LoginPage(Window); } } return(false); }
private void CreateUsers() { for (var i = 0; i < 10; i++) { var user = new UserInfo() { Age = 18 + i, FirstName = "User", LastName = "Generated" + i, Login = "******" + i, Password = "******" }; userService.Add(user); } }