public object Create(string type) { Events exhibition; if (type == temporary) { exhibition = new Temporary(); } else if (type == permanent) { exhibition = new Permanent(); } else { return(null); } return(exhibition); }
public object ImportData(string type, Dictionary <string, string> dictionary) { Events exhibition; if (type == temporary) { exhibition = new Temporary(dictionary); } else if (type == permanent) { exhibition = new Permanent(dictionary); } else { return(null); } return(exhibition); }