public IActionResult GetSectionsForExam(int examId) { var sections = _sectionManager.GetSectionsForExam(examId); if (sections.Count == 0) { return(NoContent()); } var result = Mapper.Map <List <SectionResponse> >(sections); return(Json(result)); }