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)); }
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)); }