public async Task <IActionResult> Edit(int id, [Bind("FormAcademicaId,Instituição,Nome,Duração,DataDeConclusão")] FormAcademica formAcademica)
        {
            if (id != formAcademica.FormAcademicaId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(formAcademica);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!FormAcademicaExists(formAcademica.FormAcademicaId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(formAcademica));
        }
        public async Task <IActionResult> Create([Bind("FormAcademicaId,Instituição,Nome,Duração,DataDeConclusão")] FormAcademica formAcademica)
        {
            if (ModelState.IsValid)
            {
                _context.Add(formAcademica);
                await _context.SaveChangesAsync();

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