Example #1
0
        public Section createSection(CodeEnum code, string text, bool allowText, int subSectionLevel)
        {
            var section = secPlaceholder.CreateSection(code, text, allowText, subSectionLevel);

            if (section == null)
            {
                throw new HttpResponseException(HttpStatusCode.NotFound);
            }
            return(section);
        }
Example #2
0
 public Section Post([FromBody] Section section)
 {
     return(repo.CreateSection(section));
 }
Example #3
0
 public void CreateSection(KursNivelTip newSection)
 {
     sectionRepository.CreateSection(newSection);
 }
Example #4
0
 public void CreateSection(Section section)
 {
     _sectionRepository.CreateSection(section);
 }