public IActionResult Post([FromBody] PowerPost value) { _powerService.SetPowerMode((ComputerPowerState)value.State); return(Ok()); }