public async Task <IActionResult> PutTinfrastructureManager(short id, TinfrastructureManager tinfrastructureManager)
        {
            if (id != tinfrastructureManager.TinfrastructureManagerId)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <TinfrastructureManager> > PostTinfrastructureManager(TinfrastructureManager tinfrastructureManager)
        {
            _context.TinfrastructureManager.Add(tinfrastructureManager);
            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (TinfrastructureManagerExists(tinfrastructureManager.TinfrastructureManagerId))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtAction("GetTinfrastructureManager", new { id = tinfrastructureManager.TinfrastructureManagerId }, tinfrastructureManager));
        }