public async Task <IActionResult> Edit(int id, [Bind("Id,Description,Icon")] TablePaymentOption tablePaymentOption)
        {
            if (id != tablePaymentOption.Id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(tablePaymentOption);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!TablePaymentOptionExists(tablePaymentOption.Id))
                    {
                        return(NotFound());
                    }

                    throw;
                }

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

            return(View(tablePaymentOption));
        }
        public async Task <IActionResult> Create([Bind("Id,Description,Icon")] TablePaymentOption tablePaymentOption)
        {
            if (ModelState.IsValid)
            {
                _context.Add(tablePaymentOption);
                await _context.SaveChangesAsync();

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

            return(View(tablePaymentOption));
        }