private void btnCreateMany_Click(object sender, EventArgs e)
        {
            if (txtUserNamePrefix.Text != "" && txtUserNameSuffix.Text != "" && cbTeamMany.SelectedItem != null && txtPasswordSuffix.Text != "" && txtPortMany.Text != "" && lbUserGroupMany.SelectedItem != null && txtUserNames.Text != "")
            {
                bool disablepwchange = chkDisablePWChangeMany.Checked;
                bool pwneverexpires  = chkNoPWExpirationMany.Checked;


                int port   = Convert.ToInt32(txtPortMany.Text);
                int teamId = (int)((Team)cbTeamMany.SelectedItem).TeamId;

                _userInteraction.CreateMany(txtUserNamePrefix.Text, Convert.ToInt32(txtUserNameSuffix.Text), teamId, txtPasswordSuffix.Text, port, lbUserGroupMany.Text, txtUserNames.Text, disablepwchange, pwneverexpires);
                MessageBox.Show("Done");
            }
        }
 public ActionResult CreateMany(CreateManyViewModel vm)
 {
     interaction.CreateMany(vm.UserNamePrefix, vm.UserNameSuffix, vm.Team.TeamId, vm.Credentials.DatabasePassword, vm.Credentials.WebsitePort, vm.Credentials.WindowsUserGroupName, vm.StudentNames, vm.Credentials.DisablePasswordChange, vm.Credentials.PasswordNeverExpires);
     return(RedirectToAction("Index"));
 }