Exemple #1
0
        public async Task <IActionResult> PutPrototypeTable(int id, PrototypeTable prototypeTable)
        {
            if (id != prototypeTable.PrototypePk)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }