Beispiel #1
0
        public ImportResult ImportExternalUsers(Stream stream)
        {
            var exporter = new UserImporter(_externalUsers);
            var count    = exporter.ImportFromCSV(stream, false);

            return(new ImportResult(count, 0));
        }
Beispiel #2
0
        public ImportResult ImportLocalUsers(Stream stream)
        {
            var importer = new UserImporter(_localUsers);
            var count    = importer.ImportFromCSV(stream, false);

            return(new ImportResult(count, 0));
        }
Beispiel #3
0
        public ImportResult ImportExternalUsersWithOverwrite(Stream stream)
        {
            var exporter = new UserImporter(_externalUsers);
            var before   = _externalUsers.Total;
            var count    = exporter.ImportFromCSV(stream, true);

            return(new ImportResult(count, before));
        }