public void addCustomer(string fname, string lname, string address, string country, string phone, string email, string password, string payStatus, DiscountGroup discountGroup) { CustomerCtr custCtr = new CustomerCtr(); int newCust = custCtr.add(fname, lname, address, country, phone, email, discountGroup.ID, payStatus); LogInfoCtr logInfoCtr = new LogInfoCtr(); // email is used as login name for everyone logInfoCtr.add(email, password, newCust); }
public void addEmployee(string fname, string lname, string address, string country, string phone, string email, string password, int stationId, string position) { EmployeeCtr empCtr = new EmployeeCtr(); int newEmp = empCtr.add(fname, lname, address, country, phone, email, stationId, (EmployeePosition)Enum.Parse(typeof(EmployeePosition), position)); LogInfoCtr logInfoCtr = new LogInfoCtr(); // email is used as login name for everyone logInfoCtr.add(email, password, newEmp); }
public void addLogInfo(string loginName, string password, int personId) { LogInfoCtr liCtr = new LogInfoCtr(); int newLi = liCtr.add(loginName, password, personId); }