public async Task <IActionResult> Edit(int id, [Bind("ConnectionStatusId,ConnectionStatusName")] LookUpConnectionStatus lookUpConnectionStatus)
        {
            if (id != lookUpConnectionStatus.ConnectionStatusId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(lookUpConnectionStatus);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!LookUpConnectionStatusExists(lookUpConnectionStatus.ConnectionStatusId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(lookUpConnectionStatus));
        }
        public async Task <IActionResult> Create([Bind("ConnectionStatusId,ConnectionStatusName")] LookUpConnectionStatus lookUpConnectionStatus)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookUpConnectionStatus);
                await _context.SaveChangesAsync();

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