Exemplo n.º 1
0
        public ActionResult Index2()
        {
            Student aStudent = new Student();
            aStudent.Name="Darens";

            return View(aStudent);
        }
Exemplo n.º 2
0
 private bool HasStudent(Student aStudent)
 {
     foreach (Student student in db.Students.ToList())
     {
         if (student.RegNo==aStudent.RegNo)
         {
             return true;
         }
     }
     return false;
 }