public async Task <IActionResult> Create([Bind("formacaoId,nome_instituicao,nome_curso,nivel,competencias,dataInicio,dataFim")] formacao formacao)
        {
            if (ModelState.IsValid)
            {
                _context.Add(formacao);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(formacao));
        }
        public async Task <IActionResult> Create([Bind("ContactoId,Nome,Email,Mensagem")] Contacto contacto)
        {
            if (ModelState.IsValid)
            {
                _context.Add(contacto);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(contacto));
        }
        public async Task <IActionResult> Create([Bind("skillsId,descricao_skills")] skills skills)
        {
            if (ModelState.IsValid)
            {
                _context.Add(skills);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(skills));
        }
        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));
        }
Example #5
0
        public async Task <IActionResult> Create([Bind("SobreMimId,Sobre")] SobreMim sobreMim)
        {
            if (ModelState.IsValid)
            {
                _context.Add(sobreMim);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(sobreMim));
        }
Example #6
0
        public async Task <IActionResult> Create([Bind("experiencia_profissionalId,funcao,empresa,descricao_exp,dataInicio,dataFim")] experiencia_profissional experiencia_profissional)
        {
            if (ModelState.IsValid)
            {
                _context.Add(experiencia_profissional);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(experiencia_profissional));
        }
        public async Task <IActionResult> Create([Bind("ExpProfissionalId,Empresa,Funcao,Detalhes,Data")] ExpProfissional expProfissional)
        {
            if (ModelState.IsValid)
            {
                _context.Add(expProfissional);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(expProfissional));
        }
        public async Task <IActionResult> Create([Bind("distincao_premiosId,descricao_distincao")] distincao_premios distincao_premios)
        {
            if (ModelState.IsValid)
            {
                _context.Add(distincao_premios);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(distincao_premios));
        }
        public async Task <IActionResult> Create([Bind("outras_informacoesId,descricao_informacao")] outras_informacoes outras_informacoes)
        {
            if (ModelState.IsValid)
            {
                _context.Add(outras_informacoes);
                await _context.SaveChangesAsync();

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