public bool updateSmartPhone(Smartphone smartPhone) { bool rs = new SmartPhoneDAO().updateSmartPhone(smartPhone); return(rs); }
public bool addSmartPhone(Smartphone smartPhone) { bool rs = new SmartPhoneDAO().addSmartPhone(smartPhone); return(rs); }
public bool deleteSmartPhoneByCode(int code) { bool rs = new SmartPhoneDAO().DeleteSmartPhoneByCode(code); return(rs); }
public List <Smartphone> searchByName(string keyword) { List <Smartphone> smartPhones = new SmartPhoneDAO().searchByName(keyword); return(smartPhones); }
public List <Smartphone> getAllList() { List <Smartphone> smartPhones = new SmartPhoneDAO().getListSmartPhone(); return(smartPhones); }