public async Task <IActionResult> Edit(int id, [Bind("Sf6SafetyAndLifeId,SF6Pressure,RatedPressureAt20C,MinimumfunctionalpressureAt20C,BurstingPressure,GasLeakageRate,SafetyIndication,CapacitiveVoltageIndicatorEUJapanUSAOrigin,GasPressureManometer,BusBarGasPressureManometer,LifeEnduranceOfSwitchgear,CircuitBreakers,DisconnectorsAndEarthingSwitches")] LookupSf6SafetyAndLife lookupSf6SafetyAndLife)
        {
            if (id != lookupSf6SafetyAndLife.Sf6SafetyAndLifeId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(lookupSf6SafetyAndLife);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!LookupSf6SafetyAndLifeExists(lookupSf6SafetyAndLife.Sf6SafetyAndLifeId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(lookupSf6SafetyAndLife));
        }
        public async Task <IActionResult> Create([Bind("Sf6SafetyAndLifeId,SF6Pressure,RatedPressureAt20C,MinimumfunctionalpressureAt20C,BurstingPressure,GasLeakageRate,SafetyIndication,CapacitiveVoltageIndicatorEUJapanUSAOrigin,GasPressureManometer,BusBarGasPressureManometer,LifeEnduranceOfSwitchgear,CircuitBreakers,DisconnectorsAndEarthingSwitches")] LookupSf6SafetyAndLife lookupSf6SafetyAndLife)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookupSf6SafetyAndLife);
                await _context.SaveChangesAsync();

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