public async Task <IActionResult> PostSocietyandglobalizationq([FromBody] Societyandglobalizationq societyandglobalizationq)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            _context.Societyandglobalizationq.Add(societyandglobalizationq);
            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (SocietyandglobalizationqExists(societyandglobalizationq.Gqid))
                {
                    return(new StatusCodeResult(StatusCodes.Status409Conflict));
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtAction("GetSocietyandglobalizationq", new { id = societyandglobalizationq.Gqid }, societyandglobalizationq));
        }
        public async Task <IActionResult> PutSocietyandglobalizationq([FromRoute] int id, [FromBody] Societyandglobalizationq societyandglobalizationq)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

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

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

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

            return(NoContent());
        }