Example #1
0
        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);
        }
Example #2
0
 public static void DodajStudenta(StudentModel student)
 {
     studenti.Add(student);
 }