public IEnumerable <AgeRangeInfo> GetTotalsByFundAgeRange() { var model = new BundleModel(); var ageRangeInfos = model.TotalsByFundAgeRange(0, Dt1.GetValueOrDefault(), Dt2.GetValueOrDefault(), string.Empty, CampusId); RangeTotal = model.RangeTotal; return(ageRangeInfos); }
public IEnumerable <RangeInfo> GetTotalsByFundRange() { var model = new BundleModel(); var rangeInfos = model.TotalsByFundRange(FundId, Dt1.GetValueOrDefault(), Dt2.GetValueOrDefault(), string.IsNullOrWhiteSpace(Pledged) ? "false" : Pledged, CampusId); RangeTotal = model.RangeTotal; return(rangeInfos); }
public IEnumerable <AgeRangeInfo> GetTotalsByFundAgeRange() { var model = new BundleModel(); var fundids = APIContributionSearchModel.GetCustomFundSetList(DbUtil.Db, FundSet).JoinInts(","); var ageRangeInfos = model.TotalsByFundAgeRange(0, Dt1.GetValueOrDefault(), Dt2.GetValueOrDefault(), string.Empty, CampusId, fundids); RangeTotal = model.RangeTotal; return(ageRangeInfos); }
public IEnumerable <AgeRangeInfo> GetTotalsByFundAgeRange() { var model = new BundleModel(); var customFundIds = APIContributionSearchModel.GetCustomFundSetList(DbUtil.Db, FundSet); var authorizedFundIds = DbUtil.Db.ContributionFunds.ScopedByRoleMembership(DbUtil.Db).Select(f => f.FundId).ToList(); string fundIds = string.Empty; if (customFundIds?.Count > 0) { fundIds = authorizedFundIds.Where(f => customFundIds.Contains(f)).JoinInts(","); } else { fundIds = authorizedFundIds.JoinInts(","); } var ageRangeInfos = model.TotalsByFundAgeRange(0, Dt1.GetValueOrDefault(), Dt2.GetValueOrDefault(), string.Empty, CampusId, fundIds); RangeTotal = model.RangeTotal; return(ageRangeInfos); }