public string[] GetSelectedPayouts(PayoutState state) { return(Payouts.Where(model => model.Selected).Select(model => model.PayoutId) .ToArray()); }
public string[] GetSelectedPayouts(PayoutState state) { return(PayoutStateSets.Where(set => set.State == state) .SelectMany(set => set.Payouts.Where(model => model.Selected).Select(model => model.PayoutId)) .ToArray()); }
public static string PayoutLink(this LinkGenerator urlHelper, string walletIdOrStoreId, string pullPaymentId, PayoutState payoutState, string scheme, HostString host, string pathbase) { WalletId.TryParse(walletIdOrStoreId, out var wallet); return(urlHelper.GetUriByAction( action: nameof(UIStorePullPaymentsController.Payouts), controller: "UIStorePullPayments", values: new { storeId = wallet?.StoreId ?? walletIdOrStoreId, pullPaymentId, payoutState }, scheme, host, pathbase)); }