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

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

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

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

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

            _context.AcTriggerType.Add(acTriggerType);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetAcTriggerType", new { id = acTriggerType.TrtId }, acTriggerType));
        }