public async Task <ActionResult <Command> > Post(Guid actuatorId, [FromBody] CommandRequest request) { var command = _converter.ToCommandValue(request); var result = await _services.Create(actuatorId, command); if (result == null) { return(NotFound("Command was not added")); } return(Ok(_converter.ToCommandResponse(result))); }