private bool saveCustomerInDb(Customer customer) { DbManager db = DbManager.GetInstance(); if (db.AddCustomer(customer)) { return(true); } else { message = db.Error != null ? db.Error : ""; return(false); } }