added selection methods

This commit is contained in:
Mohammed Ashab Uddin
2020-07-30 09:29:19 +04:00
parent 3bf8cf6d03
commit e936c4d312
2 changed files with 18 additions and 0 deletions

View File

@@ -29,6 +29,15 @@ class User{
return this.websites.getData(companyName);
}
selectWebsite(companyName)
{
return this.websites.selectData(companyName);
}
getSelectedWebsite(){
return this.websites.selectedData;
}
}
module.exports.User = User;

View File

@@ -54,6 +54,15 @@ class Website {
return this.products.deleteData(productId);
}
selectProduct(productId){
return this.products.selectData(productId);
}
getSelectedProduct()
{
return this.products.selectedData;
}
}