public bool Delete(Candidato candidato) { bool existe = _context.Candidato.Any(c => c.Id == candidato.Id); if (!existe) { return(false); } _context.Remove(candidato); _context.SaveChanges(); return(true); }
public bool Delete(Experiencia experiencia) { bool existe = _context.Experiencia.Any(e => e.Id == experiencia.Id); if (!existe) { return(false); } _context.Remove(experiencia); _context.SaveChanges(); return(true); }