private void Create(object parameter) { var model = parameter as RegistrationModel; UserModel user = new UserModel(model); Query.CreateUser(user); }