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