public async Task <IActionResult> PutKnowledgeBaseBoilerPart(long id, KnowledgeBaseBoilerPart knowledgeBaseBoilerPart)
        {
            if (id != knowledgeBaseBoilerPart.Id)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <KnowledgeBaseBoilerPart> > PostKnowledgeBaseBoilerPart(KnowledgeBaseBoilerPart knowledgeBaseBoilerPart)
        {
            _context.BoilerParts.Add(knowledgeBaseBoilerPart);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetKnowledgeBaseBoilerPart", new { id = knowledgeBaseBoilerPart.Id }, knowledgeBaseBoilerPart));
        }