Exemple #1
0
 public ActionResult Create(Subject subject)
 {
     SubjectStorage.Add(subject);
     return(RedirectToAction("Index"));
 }
Exemple #2
0
 public SubjectAndStudentsViewModel(Student student)
 {
     Student  = student;
     Subjects = SubjectStorage.GetAll();
 }
Exemple #3
0
 // GET: Subject
 public ActionResult Index()
 {
     return(View(SubjectStorage.GetAll()));
 }