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

            if (id != bMouldKinds.KindId)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <IActionResult> PostBMouldKinds([FromBody] BMouldKinds bMouldKinds)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            _context.BMouldKinds.Add(bMouldKinds);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetBMouldKinds", new { id = bMouldKinds.KindId }, bMouldKinds));
        }