public async Task <ActionResult <MeisterConnection> > PostMeisterConnection(MeisterConnection meisterConnection)
        {
            _context.MeisterConnection.Add(meisterConnection);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetMeisterConnection", new { id = meisterConnection.Id }, meisterConnection));
        }
        public async Task <IActionResult> PutMeisterConnection(long id, MeisterConnection meisterConnection)
        {
            if (id != meisterConnection.Id)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }