public ActionResult Directory(MediaCategorySearchModel searchModel) { ViewData["files"] = _fileAdminService.GetFilesForFolder(searchModel); ViewData["folders"] = _fileAdminService.GetSubFolders(searchModel); return(PartialView(searchModel)); }
public PartialViewResult Manage(MediaCategorySearchModel searchModel) { ViewData["category"] = _fileAdminService.GetCategory(searchModel); ViewData["files"] = _fileAdminService.GetFilesForFolder(searchModel); ViewData["folders"] = _fileAdminService.GetSubFolders(searchModel); ViewData["sort-by-options"] = _fileAdminService.GetSortByOptions(searchModel); return(PartialView(searchModel)); }