public async Task <IActionResult> Create([Bind("ExperienciaId,Nome,Descricao,Data_Inicio,Data_Fim")] Experiencia experiencia) { if (ModelState.IsValid) { _context.Add(experiencia); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(experiencia)); }
public async Task <IActionResult> Create([Bind("LinguasId,Lingua,Coral,Leitura,Poral,Ioral,Escrita")] Linguas linguas) { if (ModelState.IsValid) { _context.Add(linguas); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(linguas)); }