public ActionResult Broken(int ShowResultsFrom = 0) { var model = new BrokenLinksViewModel(); model.ShowResultsFrom = ShowResultsFrom; try { model.BrokenLinksTable.Table = PrepareDataTable("Link Errors", _BrokenFilePath, ShowResultsFrom); } catch (Exception error) { model.ErrorMessage = error.Message; } model.TotalBroken = CountCSVRows("Link Errors", _BrokenFilePath); return(View(model)); }
public ActionResult SearchAllBroken(string Query) { var model = new BrokenLinksViewModel(); model.Search = true; model.Query = Query; try { model.BrokenLinksTable.Table = PrepareSearchDataTable("Link Errors", _BrokenFilePath, Query); } catch (Exception error) { model.ErrorMessage = error.Message; } model.TotalBroken = CountCSVRows("Link Errors", _BrokenFilePath); return(View("Broken", model)); }