Example #1
0
        public async static Task <AInBox.Astove.Core.Options.Filter> GenerateFilterAsync(IComponentContext container, IRequestFilter cmd, Type modelType, KeyValue parentId)
        {
            FilterOptions options = await FilterFactory.GenerateFilterOptionsAsync(container, modelType, parentId, cmd);

            FilterCondition[] conditions = null;
            if (options != null)
            {
                conditions = options.GetFilterConditions(cmd);
            }

            return(new AInBox.Astove.Core.Options.Filter {
                Options = options, Conditions = conditions
            });
        }