public ActionResult <CommandReadDto> CreateCommand(CommandCreateDto commandCreateDto) { var commandModel = mapper.Map <Command>(commandCreateDto); storageBroker.CreateCommand(commandModel); storageBroker.SaveChanges(); var commandReadDto = mapper.Map <CommandReadDto>(commandModel); return(CreatedAtRoute(nameof(GetCommandById), new { Id = commandReadDto.Id }, commandReadDto)); }