public async Task <ActionResult <EtapTsiTransportOperationalIdentifier> > PostEtapTsiTransportOperationalIdentifier(EtapTsiTransportOperationalIdentifier etapTsiTransportOperationalIdentifier)
        {
            _context.EtapTsiTransportOperationalIdentifier.Add(etapTsiTransportOperationalIdentifier);
            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (EtapTsiTransportOperationalIdentifierExists(etapTsiTransportOperationalIdentifier.EtapTsiTransportOperationalIdentifierId))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtAction("GetEtapTsiTransportOperationalIdentifier", new { id = etapTsiTransportOperationalIdentifier.EtapTsiTransportOperationalIdentifierId }, etapTsiTransportOperationalIdentifier));
        }
        public async Task <IActionResult> PutEtapTsiTransportOperationalIdentifier(short id, EtapTsiTransportOperationalIdentifier etapTsiTransportOperationalIdentifier)
        {
            if (id != etapTsiTransportOperationalIdentifier.EtapTsiTransportOperationalIdentifierId)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }