def update(self): if not self.isValid(): return False Repo.destroy(Game, self) Repo.create(Game, self) return True
def update(self): brand = Brand.find_by("id", self.id) if not self.isValid(): return False Repo.destroy(Brand, self) Repo.create(Brand, self) return True
def delete(self): return Repo.destroy(Game, self)
def delete(self): return Repo.destroy(Brand, self)