public void CustomerAdd(ICustomer customer, IDatabaseDal databaseDal) { if (_customerCheckService.ValidatePerson(customer)) { if (_customerCheckService.ValidateStudentOrAdult(customer)) { Console.WriteLine(customer.FirstName + " saved as Student..."); } else { Console.WriteLine(customer.FirstName + " saved as Adult..."); } databaseDal.Add(); } else { Console.WriteLine("Customer is not a valid person. Please enter valid information."); } }
public DatabaseManager(IDatabaseDal databaseDal) { _databaseDal = databaseDal; }
public void AddCampaign(ICampaign campaign, IGame game, ICustomer customer, IDatabaseDal databaseDal) { Console.WriteLine("Campaign: " + campaign.EntityName + " added for Game: " + game.EntityName + " for Customer: " + customer.FirstName); databaseDal.Add(); }
public void CustomerDelete(ICustomer customer, IDatabaseDal databaseDal) { Console.WriteLine("Customer: " + customer.FirstName + " deleted..."); databaseDal.Delete(); }
public DatabaseManager(IDatabaseDal dbDal) { _dbDal = dbDal; }