/// <summary> /// Gets the financial account name. /// </summary> /// <param name="achievementTypeCache">The achievement type cache.</param> /// <param name="rockContext">The rock context.</param> /// <returns> /// <br /> /// </returns> private string GetFinancialAccountName(AchievementTypeCache achievementTypeCache, RockContext rockContext = null) { if (null == rockContext) { rockContext = new RockContext(); } var guid = GetFinancialAccountGuid(achievementTypeCache); if (!guid.HasValue) { return(null); } var accountService = new FinancialAccountService(rockContext); return(accountService.GetSelect(guid.Value, a => a.Name)); }