private void button4_Click(object sender, EventArgs e) { vTestCreatDeLector = serviciuLectori.GetTestCreatDeLectorByName(comboBox3.Text); vCursant = serviciuLectori.GetCursantByCont(comboBox4.Text); var lista = serviciuLectori.GetListaTesteSalvateInBazaDeDateByID_CURSANT_ID_TestCreatDeLector(vCursant.IdCursant, vTestCreatDeLector.IdTest); foreach (var v in lista) { vListTestSalvatInBD.Add(v); } ActualizareInformatii(index); textBox1.ReadOnly = false; punctaje = new double[vTestCreatDeLector.NrIntrebari]; }
public ActionResult GestionareCursanti() { if (!verificareSesiuneLogareLector()) { return(RedirectToAction("Index", "Lector")); } string NumeDisciplina = Request.Form["NumeDisciplina"]; string contCursant = Request.Form["contCursant"]; string parolaCursant = Request.Form["parolaCursant"]; string emailCursant = Request.Form["emailCursant"]; if (NumeDisciplina != null && NumeDisciplina.Length != 0) { if (contCursant != null && contCursant.Length != 0) { if (parolaCursant != null && parolaCursant.Length != 0) { if (emailCursant != null && emailCursant.Length != 0) { var disciplina = serviciu.GetDisciplinaByNume_Capitole(NumeDisciplina); Cursanti cursant = new Cursanti { ContCursant = contCursant, Email = emailCursant, Parola = parolaCursant, DisciplinaIdDisciplina = disciplina.IdDisciplina }; cursant.State = State.Added; serviciu.CursantiUDI(cursant); } } } } var cursanti = serviciu.GetListaCursanti(); ViewBag.NumeDiscipline = serviciu.GetListaDiscipline(); return(View(cursanti)); }