/*** SERVICE LAYER FUNCTIONS***/ public Member loginMember(string username, string password) { //TODO:: load shopping basket int ID = ConnectionStubTemp.identifyUser(username, password); if (ID == -1) { //don't log password! Logger.Log("event", logLevel.INFO, "user: "******"tried to log in and failed"); throw new Exception("incorrect username or password"); } Logger.Log("event", logLevel.INFO, "user: "******"log in and succses"); return(ConnectionStubTemp.getMember(ID)); }