public async Task <IActionResult> PutProd(string id, Protab Protab)
        {
            if (id != Protab.PROCESO)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <Protab> > PostProd(Protab Protab)
        {
            _context.Protab.Add(Protab);
            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (ProdExists(Protab.PROCESO))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtAction("GetProd", new { id = Protab.PROCESO }, Protab));
        }