public async Task <IActionResult> Put(D2Athlete d2athlete)
        {
            _context.Entry(d2athlete).State = EntityState.Modified;
            await _context.SaveChangesAsync();

            return(NoContent());
        }
        public async Task <IActionResult> Post(D2Athlete d2athlete)
        {
            _context.Add(d2athlete);
            await _context.SaveChangesAsync();

            return(Ok(d2athlete.Id));
        }
        public async Task <IActionResult> Delete(int id)
        {
            var dev = new D2Athlete {
                Id = id
            };

            _context.Remove(dev);
            await _context.SaveChangesAsync();

            return(NoContent());
        }