public ActionResult <CommandReadDto> Store(CommandCreateDto createDto) { var command = _mapper.Map <Command>(createDto); _repo.Store(command); _repo.SaveChanges(); var commandReadDto = _mapper.Map <CommandReadDto>(command); return(CreatedAtAction(nameof(Show), new { id = commandReadDto.Id }, commandReadDto)); }