public virtual async Task <CourseTopics> UpdateCourseTopic(CourseTopics courseSectionCourseTopics) { LMSData.Model.CourseTopics courseSection = _mapper.Map <LMSData.Model.CourseTopics>(courseSectionCourseTopics); await _courseSectionRepository.Update(courseSection); await _courseSectionRepository.Save(); courseSectionCourseTopics = _mapper.Map <Services.Model.CourseTopics>(courseSection); return(courseSectionCourseTopics); }
public virtual async Task <CourseTopics> AddCourseTopic(CourseTopics courseSectionCourseTopics) { //save images LMSData.Model.CourseTopics courseSection = _mapper.Map <LMSData.Model.CourseTopics>(courseSectionCourseTopics); await _courseSectionRepository.Insert(courseSection); await _courseSectionRepository.Save(); courseSectionCourseTopics = _mapper.Map <Services.Model.CourseTopics>(courseSection); return(courseSectionCourseTopics); }