public IActionResult CreateScoringSystemWeight([FromBody] ScoringSystemWeight item)
        {
            if (item == null)
            {
                return(BadRequest());
            }

            _context.ScoringSystemWeights.Add(item);
            _context.SaveChanges();

            return(CreatedAtRoute("GetScoringSystemWeight", new { id = item.Id }, item));
        }
        public IActionResult UpdateScoringSystemWeight(int id, [FromBody] ScoringSystemWeight item)
        {
            if (item == null)
            {
                return(BadRequest());
            }

            var ssw = _context.ScoringSystemWeights.FirstOrDefault(t => t.Id == id);

            if (ssw == null)
            {
                return(NotFound());
            }

            ssw.ScoringSystemId = item.ScoringSystemId;
            ssw.Rank            = item.Rank;
            ssw.Weight          = item.Weight;
            ssw.ModifyDate      = DateTime.UtcNow;

            _context.ScoringSystemWeights.Update(ssw);
            _context.SaveChanges();

            return(new NoContentResult());
        }