public async Task<IActionResult> PostBProcessControlItemDetail([FromBody] BProcessControlItemDetail bProcessControlItemDetail)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            _context.BProcessControlItemDetail.Add(bProcessControlItemDetail);
            await _context.SaveChangesAsync();

            return CreatedAtAction("GetBProcessControlItemDetail", new { id = bProcessControlItemDetail.Id }, bProcessControlItemDetail);
        }
        public async Task<IActionResult> PutBProcessControlItemDetail([FromRoute] int id, [FromBody] BProcessControlItemDetail bProcessControlItemDetail)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != bProcessControlItemDetail.Id)
            {
                return BadRequest();
            }

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

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

            return NoContent();
        }