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));
        }
        public async Task <IActionResult> Create([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 (ModelState.IsValid)
            {
                _context.Add(non_Merchandise_Code);
                await _context.SaveChangesAsync();

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