public void SetUp()
 {
     Repository.Add(new Lecturer
     {
         Id        = "euiheufh",
         FirstName = "FirstLecturer",
         LastName  = "Test",
         Email     = "*****@*****.**"
     });
 }
Beispiel #2
0
        public ActionResult Create([Bind(Include = "id,FirstName,SecondName")] Lecturer lecturer)
        {
            if (ModelState.IsValid)
            {
                //db.Lecturers.Add(lecturer);
                //db.SaveChanges();
                db.Add(lecturer);
                return(RedirectToAction("Index"));
            }

            return(View(lecturer));
        }