Пример #1
0
        public async Task <IActionResult> Edit(double id, [Bind("Legacy,Bsp1,Tekst,Liter,Mg1,IkkeTillatt,Brus,Øl,UpsizeTs")] TblMaterialMaster tblMaterialMaster)
        {
            if (id != tblMaterialMaster.Bsp1)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(tblMaterialMaster);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!TblMaterialMasterExists(tblMaterialMaster.Bsp1))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(tblMaterialMaster));
        }
Пример #2
0
        public async Task <IActionResult> Edit(string id, [Bind("Kvote,Øl,Brus,Gratis,UpsizeTs")] TblKvotedefinisjoner tblKvotedefinisjoner)
        {
            if (id != tblKvotedefinisjoner.Kvote)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(tblKvotedefinisjoner);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!TblKvotedefinisjonerExists(tblKvotedefinisjoner.Kvote))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(tblKvotedefinisjoner));
        }
        public async Task <IActionResult> Edit(int id, [Bind("Ansattnummer,Status,Fornavn,Etternavn,Ansettelsesdato,Kvotekode,StillingStatus,Stilling,OppdatertDato,Materialnummer,Antall,SalgsDato,Øl,Brus,Gratis,GratisBrus")] TblKvotefilerFraZalaris tblKvotefilerFraZalaris)
        {
            if (id != tblKvotefilerFraZalaris.Id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(tblKvotefilerFraZalaris);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!TblKvotefilerFraZalarisExists(tblKvotefilerFraZalaris.Id))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(tblKvotefilerFraZalaris));
        }
        public async Task <IActionResult> Edit(double id, [Bind("C47Nummer,C47Navn,Ansattnr,T0e,T0eNavn,Fornavn,Etternavn")] TblKundelisteMedForskjelligeNummer tblKundelisteMedForskjelligeNummer)
        {
            if (id != tblKundelisteMedForskjelligeNummer.Ansattnr)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(tblKundelisteMedForskjelligeNummer);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!TblKundelisteMedForskjelligeNummerExists(tblKundelisteMedForskjelligeNummer.Ansattnr))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(tblKundelisteMedForskjelligeNummer));
        }