public async Task <IActionResult> PutOrdenesPignoradas(int id, PCOrdenesPignoradas pCOrdenesPignoradas)
        {
            if (id != pCOrdenesPignoradas.Id)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <HttpResponseMessage> UpdateOrdenesPignoradasAsync(int id, PCOrdenesPignoradas pCOrdenesPignoradas)
        {
            var client = new HttpClient();

            return(await client.PutAsync($"{baseUrl}api/OrdenesPignoradas/{id}", getStringContentFromObject(pCOrdenesPignoradas)));
        }
        public async Task <ActionResult <PCOrdenesPignoradas> > PostOrdenesPignoradas(PCOrdenesPignoradas pCOrdenesPignoradas)
        {
            _context.PCOrdenesPignoradas.Add(pCOrdenesPignoradas);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetOrdenesPignoradas", new { id = pCOrdenesPignoradas.Id }, pCOrdenesPignoradas));
        }
        public async Task <HttpResponseMessage> InsertOrdenesPignoradasAsync(PCOrdenesPignoradas pCOrdenesPignoradas)
        {
            var client = new HttpClient();

            return(await client.PostAsync($"{baseUrl}api/OrdenesPignoradas", getStringContentFromObject(pCOrdenesPignoradas)));
        }