Ejemplo n.º 1
0
        public IActionResult Create([FromBody] SectionRequest sectionRequest)
        {
            var section = Mapper.Map <Section>(sectionRequest);

            if (!_examManager.Exists(sectionRequest.ExamId))
            {
                return(BadRequest("The exam id is not real"));
            }

            _sectionManager.AddSection(section);

            return(Ok());
        }