Пример #1
0
        private void ImportPersons(ImportPayload payload)
        {
            var fileHandler    = _fileHandlerFactory.Create(payload.Filename, payload.FileType);
            var persons        = fileHandler.ReadFile();
            var newPersonItems = from person in persons select new PersonItem(person);

            Persons.AddRange(newPersonItems);
        }
Пример #2
0
 private bool CanImportPersons(ImportPayload payload)
 {
     return(true);
 }