public async Task <IActionResult> Edit(int id, [Bind("ZresourcereasonId,resourceresult")] Zresourcereason zresourcereason)
        {
            if (id != zresourcereason.ZresourcereasonId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(zresourcereason);
                    TempData["Alert"] = String.Format("Saved Changes to Resource Reason: {0}", zresourcereason.resourceresult);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!ZresourcereasonExists(zresourcereason.ZresourcereasonId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(zresourcereason));
        }
        public async Task <IActionResult> Create([Bind("ZresourcereasonId,resourceresult")] Zresourcereason zresourcereason)
        {
            if (ModelState.IsValid)
            {
                _context.Add(zresourcereason);
                TempData["Alert"] = String.Format("Added Resource Reason: {0}", zresourcereason.resourceresult);
                await _context.SaveChangesAsync();

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