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

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

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

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

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

            _context.mastersetup.Add(mastersetup);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("Getmastersetup", new { id = mastersetup.id }, mastersetup));
        }