public string Create(AdminModel.UsersModel models) { var model = new AdminModel(); var cData = model.AddUser(models); return(cData); }
private void btnAddUser_Click(object sender, EventArgs e)// Добавить юзера { if (comboBoxLogin.Text != "" & textBoxPassword.Text != "" & comboBoxAccess.Text != "") { string login = comboBoxLogin.Text; string password = textBoxPassword.Text; string access = comboBoxAccess.Text; aModel.AddUser(login, password, access); MessageBox.Show("Вы успешно добавили нового юзера!", "Готово", MessageBoxButtons.OK, MessageBoxIcon.Information); } }