public async Task<IActionResult> Put([FromBody] Ball item) { if (item == null) return StatusCode(422, "Відсутні данні."); var result = await _ballRepository.UpdateAsync(item); if (result.Result == OperationResult.Ok) return StatusCode(202, result.Value); return StatusCode(422, result.Message); }