public string EditarCandidato(Candidato param) { try { var db = new Dbcontexto(); db.Entry(param).State = System.Data.Entity.EntityState.Modified; db.SaveChanges(); return("OK"); } catch (Exception ex) { return(ex.Message); } }
public string EditarVestibular(Vestibular param) { try { var db = new Dbcontexto(); db.Entry(param).State = System.Data.Entity.EntityState.Modified; db.SaveChanges(); return("OK"); } catch (Exception ex) { return(ex.ToString()); } }
public string EditarUsuario(Usuario user) { try { //var db = new Dbcontexto(); db.Entry(user).State = System.Data.Entity.EntityState.Modified; db.SaveChanges(); return("OK"); } catch (Exception ex) { return(ex.ToString()); } }
public void Remover(Tarefa param) { db.Entry(param).State = EntityState.Deleted; db.SaveChanges(); }