public async Task <IEnumerable <Debt> > GetNetDebt() { var debtNetVectorId = DataConstants.VectorId.NET_DEBT; ParameterExpression parameter = Expression.Parameter(typeof(Debt)); MemberExpression memberExpression = Expression.Property(parameter, "Vector_id"); Expression right = Expression.Constant(debtNetVectorId); Expression predicateBody = Expression.Equal(right, memberExpression); Expression <Func <Debt, bool> > predicate = Expression.Lambda <Func <Debt, bool> >(predicateBody, parameter); return(await _debtRepo.FindByAsyn(predicate)); }