public async Task <IActionResult> PutBoilerPart(long id, BoilerPart boilerPart)
        {
            if (id != boilerPart.Id)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <BoilerPart> > PostBoilerPart(BoilerPart boilerPart)
        {
            _context.BoilerParts.Add(boilerPart);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetBoilerPart", new { id = boilerPart.Id }, boilerPart));
        }