public bool ExecuteCSV(CSVAction action) { switch (action) { case CSVAction.Create: return(ImportViaCSV()); case CSVAction.Delete: return(DeleteViaCSV()); default: ShowFeedback("Invalid CSV Action. Please contact support.", FeedbackType.Error); return(false); } }
public void Execute(object parameter) { CSVAction action = (CSVAction)parameter; VM.ExecuteCSV(action); }