public async Task<IActionResult> UpdateWeightCategory([FromBody] WeightCategory category) { try { var userId = User.Identity.Name; category = await _organizerService.UpdateWeightCategoryAsync(category, userId); return Ok(category); } catch (Exception ex) { return BadRequest(ex.Message); } }