public async Task <IActionResult> PutSquence([FromRoute] int id, [FromBody] Squence squence)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != squence.ID)
            {
                return(BadRequest());
            }

            _context.Entry(squence).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!SquenceExists(id))
                {
                    return(NotFound());
                }
                throw;
            }

            return(NoContent());
        }
        public async Task <IActionResult> PostSquence([FromBody] Squence squence)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            _context.Squences.Add(squence);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetSquence", new { id = squence.ID }, squence));
        }