예제 #1
0
        public ActionResult Index2()
        {
            Student aStudent = new Student();
            aStudent.Name="Darens";

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