public async Task <IActionResult> Edit(int id, [Bind("LineID,BadgeID,FirstName,LastName,Username,Location,Active,Suspended")] CatchWatchEmployee CatchWatchEmployee)
        {
            if (id != CatchWatchEmployee.LineID)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(CatchWatchEmployee);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!tblEmployeeExists(CatchWatchEmployee.LineID))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(CatchWatchEmployee));
        }
        public async Task <IActionResult> Create([Bind("LineID,BadgeID,FirstName,LastName,Username,Location,Active,Suspended")] CatchWatchEmployee CatchWatchEmployee)
        {
            if (ModelState.IsValid)
            {
                _context.Add(CatchWatchEmployee);
                await _context.SaveChangesAsync();

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