public void UpdateTeacherDegree(int id, ViewTeacherDegree value)
 {
     var teacherDegree = this.unitOfWork.TeacherDegreeRepository.GetById(id);
     AutoMapper.Mapper.Map<ViewTeacherDegree, TeacherDegree>(value, teacherDegree);
     this.unitOfWork.TeacherDegreeRepository.Update(teacherDegree);
     this.SaveTeacherDegree();
 }
 public void AddTeacherDegree(ViewTeacherDegree value)
 {
     var teacherDegree = AutoMapper.Mapper.Map<ViewTeacherDegree, TeacherDegree>(value);
     this.unitOfWork.TeacherDegreeRepository.Add(teacherDegree);
     this.SaveTeacherDegree();
 }