public bool ModificarEducacion(Educacion Educacion) { using (SQLContexto contexto = new SQLContexto()) { EducacionRepo educacionRepo = new EducacionRepo(contexto); return(educacionRepo.Actualizar(Educacion)); } }
public bool AgregarEducacion(Educacion Educacion) { using (SQLContexto contexto = new SQLContexto()) { EducacionRepo educacionRepo = new EducacionRepo(contexto); return(educacionRepo.Insertar(Educacion)); } }
public bool EliminarEducacion(string Codigo) { using (SQLContexto contexto = new SQLContexto()) { EducacionRepo educacionRepo = new EducacionRepo(contexto); return(educacionRepo.Eliminar(new Educacion { Codigo = new Guid(Codigo) })); } }
public Educacion TraerEducacion(string Codigo) { using (SQLContexto contexto = new SQLContexto()) { EducacionRepo educacionRepo = new EducacionRepo(contexto); return(educacionRepo.Traer(new Educacion { Codigo = new Guid(Codigo) })); } }
public List <Educacion> TraerEducaciones(string Cuil) { try { using (SQLContexto contexto = new SQLContexto()) { EducacionRepo educacionRepo = new EducacionRepo(contexto); return(educacionRepo.TraerPorCandidato(new Candidato { Cuil = Cuil })); } } catch (Exception) { throw; } }