public ActionResult PrintReportSubscriptionsBetweenTwoDates(ReportSubscriptionsBetweenTwoDatesFilter model) { try { ViewBag.Title = "Report"; List <ReportSubscriptionsBetweenTwoDatesResult> result = DbServices.ReportSubscriptionsBetweenTwoDates(model, db); return(PartialView(result)); } catch (CfException exc) { return(View()); } }
public ActionResult ReportSubscriptions(ReportSubscriptionsBetweenTwoDatesFilter filter) { try { List <ReportSubscriptionsBetweenTwoDatesResult> result = DbServices.ReportSubscriptionsBetweenTwoDates(filter, db); return(PartialView("ReportSubscriptionsResult", result)); } catch (CfException exc) { ViewBag.ReportSubscriptions = reportSubscriptions; return(View()); } }
public ActionResult ReportSubscriptionsBetweenTwoDates(string operationType, ReportSubscriptionsBetweenTwoDatesFilter model) { try { if (model.SubscriptionDiff == null) { model.SubscriptionDiff = 0; } if (operationType != null && operationType == "print") { return(RedirectToAction("PrintReportSubscriptionsBetweenTwoDates", model)); } List <ReportSubscriptionsBetweenTwoDatesResult> result = DbServices.ReportSubscriptionsBetweenTwoDates(model, db); return(PartialView("ReportSubscriptionsBetweenTwoDatesResult", result)); } catch (CfException exc) { ViewBag.ReportSubscriptionsBetweenTwoDates = reportSubscriptionsBetweenTwoDates; return(View()); } }