public IActionResult Filter(string query, string companyId = null) { companyId = GetNonAdminUserCompanyId(); var model = new HomePageViewModel { FileInfos = !string.IsNullOrEmpty(query) ? _fileData.FilterBy(query, companyId) : _fileData.GetAll(companyId), Query = string.Empty, Message = _greeter.GetGreeting() }; return(View(nameof(Index), model)); }