Exemple #1
0
        public IActionResult GetAllSection()
        {
            var section           = _service.GetAllSection();
            List <SectionDto> Dto = new List <SectionDto>();

            foreach (var item in section)
            {
                SectionDto Dtos = _mapper.Map <SectionDto>(item);
                Dto.Add(Dtos);
            }
            return(Ok(Dto));
        }