public async Task <ActionResult <appeal> > Post([FromBody] appeal appeal)
        {
            _context.appeals.Add(appeal);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("Get", new { id = appeal.id }, appeal));
        }
        public async Task <IActionResult> Put(int id, [FromBody] appeal appeal)
        {
            if (id != appeal.id)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }