public async Task <ActionResult <DisputeReason> > PostDisputeReason(DisputeReason disputeReason)
        {
            _context.DisputeReason.Add(disputeReason);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetDisputeReason", new { id = disputeReason.Id }, disputeReason));
        }
        public async Task <IActionResult> PutDisputeReason(Guid id, DisputeReason disputeReason)
        {
            if (id != disputeReason.Id)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }