//Adds a new supplier to the DB-Grace public bool AddNewSupplier(int supplierID, string name, string phoneNum, string email, string street, string city, string county, string additionalInfo) { SupplierList = DataLayer.getAllSuppliers(); ISupplier supplier; DataLayer.AddNewSupplierToDB(supplierID, name, phoneNum, email, street, city, county, additionalInfo); supplier = SupplierFactory.GetSupplier(supplierID, name, phoneNum, email, street, city, county, additionalInfo); // Using a Factory to create the user entity object. ie seperating object creation from business logic SupplierList.Add(supplier); // Add a reference to the newly created object to the Models UserList //Gets the DataLayer to add the new user to the DB. return(true); }