public async Task <IHttpActionResult> Put(int id, [FromBody] PowerViewModel power) { var updatedPower = await Task.Run(() => _powerService.UdpatePower(id, power)); return(Ok(updatedPower)); }