public static IQueryable<SelectListItem> GetAccountSelectOptions(IAccountServices accountServices, bool showBalances = false) { return accountServices.All().Select(x => new SelectListItem { Value = x.AccountID.ToString(), Text = x.Name + ((showBalances) ? " / " + x.CurrentBalance : "") }).AsQueryable(); }