public async Task <IActionResult> Edit(int id, [Bind("Id,Code,Name")] PasClass pasClass)
        {
            if (id != pasClass.Id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(pasClass);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!PasClassExists(pasClass.Id))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(pasClass));
        }
        public async Task <IActionResult> Create([Bind("Id,Code,Name")] PasClass pasClass)
        {
            if (ModelState.IsValid)
            {
                _context.Add(pasClass);
                await _context.SaveChangesAsync();

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