public void Import(string filename) { var payload = new ImportPayload() { Filename = filename, FileType = "JSON" }; _viewModel.ImportPersonsCommand.Execute(payload); }
private void ImportPersonsFromFile() { var payload = new ImportPayload { Filename = "MyRandomFilename.json", FileType = "Json" }; _viewModel.ImportPersonsCommand.Execute(payload); }