public int addStore(string storeName, string storeDescription, Session session) { if (storeName.Length == 0) { throw new ArgumentException("error - store must have a name"); } return(db.createStore(session, storeName, storeDescription)); }
//3.2 public int createStore(int session, String storeName, String description) { if (session < 0) { throw new NullReferenceException("error - bad session"); } return(db.createStore(session, storeName, description)); }
public int addStore(string storeName, string storeDescription, int session) { if (storeName == null || storeName.Length == 0) { throw new ILLArgumentException("Error: A store name cannot be empty"); } return(db.createStore(session, storeName, storeDescription)); }