// DELETE: odata/mdArrangementSynchCircuitRows(5)
        public async Task <IHttpActionResult> Delete([FromODataUri] int key)
        {
            mdArrangementSynchCircuitRow mdArrangementSynchCircuitRow = await db.mdArrangementSynchCircuitRows.FindAsync(key);

            if (mdArrangementSynchCircuitRow == null)
            {
                return(NotFound());
            }

            db.mdArrangementSynchCircuitRows.Remove(mdArrangementSynchCircuitRow);
            await db.SaveChangesAsync();

            return(StatusCode(HttpStatusCode.NoContent));
        }
        // PUT: odata/mdArrangementSynchCircuitRows(5)
        public async Task <IHttpActionResult> Put([FromODataUri] int key, Delta <mdArrangementSynchCircuitRow> patch)
        {
            Validate(patch.GetEntity());

            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            mdArrangementSynchCircuitRow mdArrangementSynchCircuitRow = await db.mdArrangementSynchCircuitRows.FindAsync(key);

            if (mdArrangementSynchCircuitRow == null)
            {
                return(NotFound());
            }

            patch.Put(mdArrangementSynchCircuitRow);

            try
            {
                await db.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!mdArrangementSynchCircuitRowExists(key))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(Updated(mdArrangementSynchCircuitRow));
        }