public async Task <IActionResult> Edit(int id, [Bind("CheckingTransId,CheckingId,Time,Amount,Type")] CheckingTrans checkingTrans)
        {
            if (id != checkingTrans.CheckingTransId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(checkingTrans);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!CheckingTransExists(checkingTrans.CheckingTransId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(checkingTrans));
        }
        public async Task <IActionResult> Create([Bind("CheckingTransId,CheckingId,Time,Amount,Type")] CheckingTrans checkingTrans)
        {
            if (ModelState.IsValid)
            {
                _context.Add(checkingTrans);
                await _context.SaveChangesAsync();

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