public async Task <ActionResult <SectionDTO> > Get(Guid id) { var section = await _sectionService.GetAsync(id); if (section != null) { return(Ok(section)); } return(NotFound()); }
public async Task <ActionResult <IEnumerable <SectionDto> > > Get([FromQuery] bool instrumentsOnly = false) { return(Ok(await _sectionService.GetAsync(instrumentsOnly))); }