public ActionResult NoSQLReport() { Stopwatch pageTime = new Stopwatch(); pageTime.Start(); LogsReportModel result = new LogsReportModel(); result.Items.AddRange((new NoSQLLogRepository()).GetLogsReport()); result.TimeReport = pageTime.ElapsedMilliseconds; return(PartialView(result)); }
public ActionResult SQLAccess(Guid?SelectedApp, string TextToSearch, int?page) { ViewData["LogReport"] = new LogsReportModel(); Stopwatch pageTime = new Stopwatch(); pageTime.Start(); LogListModel model = new LogListModel(); model.App.AddRange((new SQLAppRepository()).GetAll().OrderBy(x => x.Name)); model.Logs = new SQLLogRepository().Search(SelectedApp, TextToSearch, page ?? 1, 10); pageTime.Stop(); model.PaginationTime = pageTime.ElapsedMilliseconds; return(View(model)); }