Ejemplo n.º 1
0
        public async Task <IActionResult> Edit(int id, [Bind("IRN_ID,IRN_INVOICE_NO,IRN_PO_NO,IRN_VENDOR_NO,IRN_VENDOR_ALT_KEY,IRN_INVOICE_RETURN_CODE1,IRN_INVOICE_RETURN_CODE2,IRN_INVOICE_RETURN_CODE3,IRN_INVOICE_RETURN_CODE4,IRN_INVOICE_RETURN_CODE5,IRN_RETURN_AMT,IRN_DATE_OF_RETURN,IRN_DATE_RECEIVED,IRN_FSS_PO_NO")] Invoice_Return_Notice invoice_Return_Notice)
        {
            if (id != invoice_Return_Notice.IRN_ID)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(invoice_Return_Notice);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!Invoice_Return_NoticeExists(invoice_Return_Notice.IRN_ID))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(invoice_Return_Notice));
        }
        public async Task <IActionResult> Edit(string id, [Bind("REG_PO_SUFFIX,REG_FSS_REGION_CODE,REG_FAIM_FB_REGION_CODE,REG_FEDPAY_REGION_CODE,REG_ROUTING_ID,REG_INFONET_REGION_CODE")] Region region)
        {
            if (id != region.REG_PO_SUFFIX)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(region);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!RegionExists(region.REG_PO_SUFFIX))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(region));
        }
        public async Task <IActionResult> Edit(string id, [Bind("NMC_CODE,NMC_MEANING,NMC_INVOICE_ACTION,NMC_ADMIN_DIFF_IND,NMC_PO_TD_CODE,NMC_BILLING_LIT,NMC_TRANSACTION_ID,NMC_ADJUSTMENT_IND,NMC_SYS_CODE")] Non_Merchandise_Code non_Merchandise_Code)
        {
            if (id != non_Merchandise_Code.NMC_CODE)
            {
                return(NotFound());
            }

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