public async Task <ActionResult <SlideSetAdminDTO> > CreateSlideSet([FromBody] SlideSetAdminCreateDTO dto, CancellationToken ct) { if (dto == null) { return(BadRequest()); } var obj = _mapper.Map <SlideSet>(dto); obj.Id = Guid.NewGuid(); obj = await _contentSvc.AddSlideSetAsync(obj, ct); return(CreatedAtAction(nameof(GetSlideSet), new { id = obj.Id }, _mapper.Map <SlideSetAdminDTO>(obj))); }