public async Task <IActionResult> Edit(string id, [Bind("SideLockTieTerminalClampMerlinId,SideLockTieTerminalClampMerlinType,Materials,Standard,UltimateTensileStrength,PoleId")] LookUpSideLockTieTerminalClampMerlin lookUpSideLockTieTerminalClampMerlin)
        {
            if (id != lookUpSideLockTieTerminalClampMerlin.SideLockTieTerminalClampMerlinId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(lookUpSideLockTieTerminalClampMerlin);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!LookUpSideLockTieTerminalClampMerlinExists(lookUpSideLockTieTerminalClampMerlin.SideLockTieTerminalClampMerlinId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            ViewData["PoleId"] = new SelectList(_context.TblPole, "PoleId", "PoleId", lookUpSideLockTieTerminalClampMerlin.PoleId);
            return(View(lookUpSideLockTieTerminalClampMerlin));
        }
        public async Task <IActionResult> Create([Bind("SideLockTieTerminalClampMerlinId,SideLockTieTerminalClampMerlinType,Materials,Standard,UltimateTensileStrength,PoleId")] LookUpSideLockTieTerminalClampMerlin lookUpSideLockTieTerminalClampMerlin)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookUpSideLockTieTerminalClampMerlin);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["PoleId"] = new SelectList(_context.TblPole, "PoleId", "PoleId", lookUpSideLockTieTerminalClampMerlin.PoleId);
            return(View(lookUpSideLockTieTerminalClampMerlin));
        }