public async Task <IActionResult> PutRemarkableTrait(int id, RemarkableTrait remarkableTrait)
        {
            if (id != remarkableTrait.Id)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <RemarkableTrait> > PostRemarkableTrait(RemarkableTrait remarkableTrait)
        {
            _context.RemarkableTrait.Add(remarkableTrait);
            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (RemarkableTraitExists(remarkableTrait.Id))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtAction("GetRemarkableTrait", new { id = remarkableTrait.Id }, remarkableTrait));
        }