예제 #1
0
 //ELIMINAR
 public Task <bool> Eliminar(Juguete j)
 {
     if (this.db.Conexion.DeleteAsync(j).Result == 1)
     {
         return(Task.FromResult(true));
     }
     else
     {
         return(Task.FromResult(false));
     }
 }
예제 #2
0
 //ACTUALIZAR
 public Task <bool> Actualizar(Juguete j)
 {
     if (this.db.Conexion.UpdateAsync(j).Result == 1)
     {
         return(Task.FromResult(true));
     }
     else
     {
         return(Task.FromResult(false));
     }
 }
예제 #3
0
 //AGREGAR
 public Task <bool> Agregar(Juguete j)
 {
     if (this.db.Conexion.InsertAsync(j).Result == 1)
     {
         return(Task.FromResult(true));
     }
     else
     {
         return(Task.FromResult(false));
     }
 }