Exemple #1
0
        public ActionResult Verified(int ShowResultsFrom = 0)
        {
            var model = new VerifiedLinksViewModel();

            model.ShowResultsFrom = ShowResultsFrom;
            try
            {
                model.VerifiedLinksTable.Table = PrepareDataTable("Verified Links", _VerifiedFilePath, ShowResultsFrom);
            }
            catch (Exception error)
            {
                model.ErrorMessage = error.Message;
            }
            model.TotalVerified = CountCSVRows("Verified Links", _VerifiedFilePath);
            return(View(model));
        }
Exemple #2
0
        public ActionResult SearchAllVerified(string Query)
        {
            var model = new VerifiedLinksViewModel();

            model.Search = true;
            model.Query  = Query;
            try
            {
                model.VerifiedLinksTable.Table = PrepareSearchDataTable("Verified Links", _VerifiedFilePath, Query);
            }
            catch (Exception error)
            {
                model.ErrorMessage = error.Message;
            }
            model.TotalVerified = CountCSVRows("Verified Links", _VerifiedFilePath);
            return(View("Verified", model));
        }