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

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

                return(RedirectToAction("Index"));
            }
            return(View(qvEntranceType));
        }