public IActionResult Update(Power power) { var result = _powerService.Update(power); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }