コード例 #1
0
        public bool CurrencyExist(string currencyId, string organizationId)
        {
            var predicate = Builder.Query.And(
                Builder.Query <Others.Currency> .EQ(i => i.Id, currencyId),
                Builder.Query <Others.Currency> .EQ(i => i.OrganizationId, organizationId));

            return(CurrencyCollection.Count(predicate) > 0);
        }