예제 #1
0
 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);
     }
 }
예제 #2
0
 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());
     }
 }
예제 #3
0
 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());
     }
 }
예제 #4
0
 public void Remover(Tarefa param)
 {
     db.Entry(param).State = EntityState.Deleted;
     db.SaveChanges();
 }