public async Task <IActionResult> PutReplacementCatalog(int id, ReplacementCatalog replacementCatalog)
        {
            if (id != replacementCatalog.ReplacementCatalogId)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <ReplacementCatalog> > PostReplacementCatalog(ReplacementCatalog replacementCatalog)
        {
            _context.ReplacementCatalogs.Add(replacementCatalog);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetReplacementCatalog", new { id = replacementCatalog.ReplacementCatalogId }, replacementCatalog));
        }