public virtual async Task <CourseSections> UpdateCourseSection(CourseSections courseSectionCourseSection)
        {
            LMSData.Model.CourseSections courseSection = _mapper.Map <LMSData.Model.CourseSections>(courseSectionCourseSection);
            await _courseSectionRepository.Update(courseSection);

            await _courseSectionRepository.Save();

            courseSectionCourseSection = _mapper.Map <Services.Model.CourseSections>(courseSection);
            return(courseSectionCourseSection);
        }
        public virtual async Task <CourseSections> AddCourseSection(CourseSections courseSectionCourseSection)
        {
            //save images
            LMSData.Model.CourseSections courseSection = _mapper.Map <LMSData.Model.CourseSections>(courseSectionCourseSection);

            await _courseSectionRepository.Insert(courseSection);

            await _courseSectionRepository.Save();

            courseSectionCourseSection = _mapper.Map <Services.Model.CourseSections>(courseSection);
            return(courseSectionCourseSection);
        }