Exemplo n.º 1
0
        public ActionResult Details(int id)
        {
            Student student = StudentStorage.Get(id);

            student.Subjects = new List <Subject> {
                new Subject {
                    Name = "Temp F*g", Description = "det gode f*g"
                }
            };
            return(View(student));
        }
Exemplo n.º 2
0
 public ActionResult AddLecture(int id)
 {
     return(View(new SubjectAndStudentsViewModel(StudentStorage.Get(id))));
 }