Esempio n. 1
0
        public ActionResult Index(string cat, string subcat)
        {
            Thread.CurrentThread.CurrentCulture = Thread.CurrentThread.CurrentUICulture = this.GetWebBrowsingSettings().CultureObject;

            return(View(new DirectoryListViewModel
            {
                RepositoryLevel = repositories.RepositoryLevel,
                RepositoriesDirectory = repositories.GetRepositoriesDirectory().FullName,
                RepositoryCategory = repositories.CombineRepositoryCat(cat, subcat),
                Repositories = repositories.GetAllRepositories(cat, subcat).Select(x => new RepositoryViewModel(x))
            }));
        }