public async Task <ActionResult <Machine> > Post([FromBody] CreateMachineCommand createCommand) { var newMachine = await _machineService.AddMachineAsync(createCommand); return(this.CreatedAtAction(nameof(Post), new { id = newMachine.Id }, newMachine)); }