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

            if (id != confOutcome.Recid)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <IActionResult> PostConfOutcome([FromBody] ConfOutcome confOutcome)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            _context.ConfOutcome.Add(confOutcome);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetConfOutcome", new { id = confOutcome.Recid }, confOutcome));
        }