public ActionResult DeleteSavedReport(string ERReportUserScheduleID)
        {
            var SaveandScheduleReportsCall = new SaveandScheduledReports();

            SaveandScheduleReportsCall.DeleteUserSchedule(Convert.ToInt32(ERReportUserScheduleID));
            return(Json(new { success = true }, JsonRequestBehavior.AllowGet));
        }
        public ActionResult _ERSaveandScheduledReportsExcel([DataSourceRequest] DataSourceRequest request, SearchSavedReportsInput search)
        {
            var SaveandScheduleReportsCall = new SaveandScheduledReports();

            DataSourceResult result = SaveandScheduleReportsCall._saveandscheduledReportsExcel(request, search, (int)WebConstants.ProductID.TracerER);
            JsonResult       jr     = new JsonResult();

            jr = Json(result, JsonRequestBehavior.AllowGet);
            jr.MaxJsonLength  = Int32.MaxValue;
            jr.RecursionLimit = 100;
            return(jr);
        }
        public ActionResult _SaveandScheduledReportsExcel([DataSourceRequest] DataSourceRequest request, SearchSavedReportsInput search)
        {
            var SaveandScheduleReportsCall = new SaveandScheduledReports();
            //if (search.MyReportsView)
            //{ }
            //else
            //{ }
            DataSourceResult result = SaveandScheduleReportsCall._saveandscheduledReportsExcel(request, search);
            JsonResult       jr     = new JsonResult();

            jr = Json(result, JsonRequestBehavior.AllowGet);
            jr.MaxJsonLength  = Int32.MaxValue;
            jr.RecursionLimit = 100;
            return(jr);
        }