Esempio n. 1
0
        public ActionResult Create()
        {
            var model = new SubjectEditViewModel(0);

            return PartialView("_CreateSubjectView", model);
        }
Esempio n. 2
0
        public ActionResult EditSubject(int id)
        {
            var model = new SubjectEditViewModel(id);

            return PartialView("_CreateSubjectView", model);
        }
Esempio n. 3
0
 public ActionResult SaveSubject(SubjectEditViewModel model)
 {
     model.Save(WebSecurity.CurrentUserId);
     return null;
 }