public void Dates(DateTime beginDate, DateTime endDate)
        {
            var miniProfilerData = new MiniProfilerAccess(GetDataAccess());

            HttpContext.Current.Response.Charset = "";
            HttpContext.Current.Response.ClearContent();

            HttpContext.Current.Response.ContentType =
                "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
            HttpContext.Current.Response.AddHeader("content-disposition",
                "attachment;filename=ActiveEmployeeReport.xlsx");

            var ws = ExcelOperations.CreateExcelDocument(() => miniProfilerData.GetDates(beginDate, endDate),
                "Mini Profiler Information");

            ws.Workbook.SaveAs(HttpContext.Current.Response.OutputStream);
            HttpContext.Current.Response.Flush();
        }
        public IEnumerable<MiniProfiler> GetMiniProfilerData()
        {
            var miniProfilerData = new MiniProfilerAccess(GetDataAccess());

            return miniProfilerData.GetMiniProfilerData();
        }
        public IEnumerable<MiniProfiler> GetLiveData()
        {
            var MiniProfilerData = new MiniProfilerAccess(GetDataAccess());
            return MiniProfilerData.GetLiveData().ToList();

        }
 public IEnumerable<MiniProfiler> GetDates(DateTime beginDate, DateTime endDate)
 {
     var miniProfilerData = new MiniProfilerAccess(GetDataAccess());
     return miniProfilerData.GetDates(beginDate, endDate).ToList();
 }