public async Task <ActionResult <InstCatSetup> > PostInstCatSetup(InstCatSetup instCatSetup)
        {
            _context.InstCatSetup.Add(instCatSetup);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetInstCatSetup", new { id = instCatSetup.Id }, instCatSetup));
        }
        public async Task <IActionResult> PutInstCatSetup(int id, InstCatSetup instCatSetup)
        {
            if (id != instCatSetup.Id)
            {
                return(BadRequest());
            }

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

            try
            {
                await _context.SaveChangesAsync();
            }
            //catch (Exception ex)
            //{
            //    return StatusCode(500, ex.Message);
            //}
            catch (DbUpdateConcurrencyException)
            {
                if (!InstCatSetupExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(Ok(instCatSetup));
        }