Exemplo n.º 1
0
        public BrowseViewModel CreateBrowser()
        {
            IReadOnlyList <FileModel> files = fileService.FindList(configuration);

            if (files == null)
            {
                return(null);
            }

            return(new BrowseViewModel(
                       files,
                       urlBuilder.Index(),
                       urlBuilder.Browse(noLayout: true),
                       urlBuilder.Delete(),
                       configuration.IsDownloadEnabled,
                       configuration.IsDeleteEnabled,
                       configuration.DateTimeFormat
                       ));
        }