public async Task PutRotation([FromBody] Rotation direction) { Direction currentDir = _lawnQuey.MachineDirection; IList <ILawnMowerMachineCommand> command = CommandMapper.GetLawnMowerMachineCommand(currentDir, direction); await Task.Run(() => _lawnCommands.AddCommandsForLawnMower(command)).ConfigureAwait(false); }