public ActionResult ContributionSearch(ContributionSearchInfo m, int? page) { var ret = AuthenticateDeveloper(addrole: "Finance"); if (ret.StartsWith("!")) return Content(@"<Contributions status=""error"">" + ret.Substring(1) + "</Contributions>"); DbUtil.LogActivity("APIContribution ContributionSearch"); return Content(new APIContributionSearchModel(DbUtil.Db, m).ContributionsXML(((page ?? 1) -1) * 100, 100), "text/xml"); }
public ActionResult BundleTotals(int? fundId, DateTime? dt1, DateTime? dt2, int? campus, int? bundletype, bool? includeunclosedbundles = true, int online = 2, string taxnontax = "TaxDed") { var api = new ContributionSearchInfo() { FundId = fundId, StartDate = dt1, EndDate = dt2, CampusId = campus, Online = online, TaxNonTax = taxnontax, IncludeUnclosedBundles = includeunclosedbundles ?? false, BundleType = bundletype }; var m = new ContributionSearchModel(api); return View(m); }
public ContributionSearchModel(ContributionSearchInfo m) { api = new APIContributionSearchModel(DbUtil.Db, m); Setup(); }
public APIContributionSearchModel(CMSDataContext db) { this.db = db; model = new ContributionSearchInfo(); }
public APIContributionSearchModel(CMSDataContext db, ContributionSearchInfo m) { this.db = db; model = m; }