public ActionResult Unos(string ime, string prezime, string email, string status) { if(ime == "" || prezime == "" || email == "") { return View("Error"); } StudentModel model = new StudentModel(); model.ime = ime; model.prezime = prezime; model.email = email; model.status = status; Repozitorij.DodajStudenta(model); return View("Potvrda", model); }
public static void DodajStudenta(StudentModel student) { studenti.Add(student); }