Example #1
0
        public async Task <IActionResult> GetSections()
        {
            var sections = await _repo.GetSections();

            var sectionsToReturn = _mapper.Map <IEnumerable <SectionReturnDTO> >(sections);

            return(Ok(sectionsToReturn));
        }