Пример #1
0
        public async Task <IHttpActionResult> Put(int id, [FromBody] PowerViewModel power)
        {
            var updatedPower = await Task.Run(() => _powerService.UdpatePower(id, power));

            return(Ok(updatedPower));
        }