public ActionResult Details(int searchId)
        {
            var searchResult = _searchHistoryProvider.GetSearchHistory(searchId);
            var model = new SearchDetailsModel
            {
                Id = searchResult.Id,
                DisplayName = GetDisplayName(searchResult),
                SearchHistoryItems =
                searchResult.SearchHistoryItems.Select(s => new SearchItemModel
                {
                    Id = s.Id,
                    ReportTitle = s.ReportTitle,
                    Indexer = s.Indexer,
                    NzbUrl = s.NzbUrl,
                    NzbInfoUrl = s.NzbInfoUrl,
                    Success = s.Success,
                    SearchError = s.SearchError.AddSpacesToEnum().Replace("None", "Grabbed"),
                    Quality = s.Quality.ToString(),
                    QualityInt = s.Quality.Weight,
                    Proper = s.Proper,
                    Age = s.Age,
                    Size = s.Size.ToBestFileSize(1),
                    Language = s.Language.ToString()
                }).ToList()
            };

            return View(model);
        }
        public ActionResult Details(int searchId)
        {
            var searchResult = _searchHistoryProvider.GetSearchHistory(searchId);
            var model        = new SearchDetailsModel
            {
                Id                 = searchResult.Id,
                DisplayName        = GetDisplayName(searchResult),
                SearchHistoryItems =
                    searchResult.SearchHistoryItems.Select(s => new SearchItemModel
                {
                    Id          = s.Id,
                    ReportTitle = s.ReportTitle,
                    Indexer     = s.Indexer,
                    NzbUrl      = s.NzbUrl,
                    NzbInfoUrl  = s.NzbInfoUrl,
                    Success     = s.Success,
                    SearchError = s.SearchError.AddSpacesToEnum().Replace("None", "Grabbed"),
                    Quality     = s.Quality.ToString(),
                    QualityInt  = s.Quality.Weight,
                    Proper      = s.Proper,
                    Age         = s.Age,
                    Size        = s.Size.ToBestFileSize(1),
                    Language    = s.Language.ToString()
                }).ToList()
            };

            return(View(model));
        }