public bool Edit(Candidato candidato)
        {
            bool existe = _context.Candidato.Any(c => c.Id == candidato.Id);

            if (!existe)
            {
                return(false);
            }

            _context.Update(candidato);
            _context.SaveChanges();
            return(true);
        }
Beispiel #2
0
        public bool Edit(Experiencia experiencia)
        {
            bool existe = _context.Experiencia.Any(e => e.Id == experiencia.Id);

            if (!existe)
            {
                return(false);
            }

            _context.Update(experiencia);
            _context.SaveChanges();
            return(true);
        }