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