public void Refactor(IEnumerable <Mp3FileInfoModel> files) { _logController.Start(SongActionEnum.Refactor); files.ToList().ForEach(UpdateSong); _logController.End(SongActionEnum.Refactor); }
public IEnumerable <Mp3FileInfoModel> GetFilesInCurrentFolder() { _logController.Start(SongActionEnum.FilesInFolder); var files = Directory.GetFiles(Directory.GetCurrentDirectory(), $"*.{Settings.Default.FileFormat}") .Select(x => new Mp3FileInfoModel(x)) .ToList(); _logController.FoundFiles(files.Count); _logController.End(SongActionEnum.FilesInFolder); return(files); }