public async Task <IActionResult> PutEannotations(long id, Eannotations eannotations)
        {
            if (id != eannotations.EannotationsId)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <Eannotations> > PostEannotations(Eannotations eannotations)
        {
            _context.Eannotations.Add(eannotations);
            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (EannotationsExists(eannotations.EannotationsId))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtAction("GetEannotations", new { id = eannotations.EannotationsId }, eannotations));
        }