Ejemplo n.º 1
0
 public JsonResult SaveSubject(SubjectRowViewModel viewModel)
 {
     subjectManagementService.SaveSubject(viewModel);
     //            var selectedSubject = subjectManagementService.GetSubjectRowById(1);
     //            return Json(selectedSubject);
     return Json(viewModel);
 }
        public void SaveSubject(SubjectRowViewModel viewModel)
        {
            var subject = Mapper.Map<SubjectRowViewModel, Subject>(viewModel);
            subjectService.UpdateSubjectThemes(subject);

            universityUow.Commit();
        }