public async Task <IActionResult> Edit(int id, [Bind("ZprogramsId,programs_id,program_desc,active")] Zprograms zprograms)
        {
            if (id != zprograms.ZprogramsId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(zprograms);
                    TempData["Alert"] = String.Format("Saved Changes to Program: {0}", zprograms.programs_id);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!ZprogramsExists(zprograms.ZprogramsId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(zprograms));
        }
        public async Task <IActionResult> Create([Bind("ZprogramsId,programs_id,program_desc,active")] Zprograms zprograms)
        {
            if (ModelState.IsValid)
            {
                _context.Add(zprograms);
                TempData["Alert"] = String.Format("Added Program: {0}", zprograms.programs_id);
                await _context.SaveChangesAsync();

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