public async Task <IActionResult> Edit(int id, [Bind("Circuito,Descripcion,PlanJefesHogar,Pne")] ProgramaCircuito programaCircuito)
        {
            if (id != programaCircuito.Circuito)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(programaCircuito);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!ProgramaCircuitoExists(programaCircuito.Circuito))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(programaCircuito));
        }
        public async Task <IActionResult> Create([Bind("Circuito,Descripcion,PlanJefesHogar,Pne")] ProgramaCircuito programaCircuito)
        {
            if (ModelState.IsValid)
            {
                _context.Add(programaCircuito);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(programaCircuito));
        }