public void UpdateTeacherCategory(int id, ViewTeacherCategory value)
 {
     var teacherCategory = this.unitOfWork.TeacherCategoryRepository.GetById(id);
     AutoMapper.Mapper.Map<ViewTeacherCategory, TeacherCategory>(value, teacherCategory);
     this.unitOfWork.TeacherCategoryRepository.Update(teacherCategory);
     this.SaveTeacherCategory();
 }
 public void AddTeacherCategory(ViewTeacherCategory value)
 {
     var teacherCategory = AutoMapper.Mapper.Map<ViewTeacherCategory, TeacherCategory>(value);
     this.unitOfWork.TeacherCategoryRepository.Add(teacherCategory);
     this.SaveTeacherCategory();
 }