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); }
public Section Post([FromBody] Section section) { return(repo.CreateSection(section)); }
public void CreateSection(KursNivelTip newSection) { sectionRepository.CreateSection(newSection); }
public void CreateSection(Section section) { _sectionRepository.CreateSection(section); }