IDataApiAny Method |
Namespace: Casewhere.Runtime.DSL.Api
bool Any( string dataClassName, DynamicFilter filter )
var dataApi = ctx.Use<IDataApi>(); var filter = FilterBuilder.Create() .Eq("DepartmentId", ctx.Input.Id) .Eq("Active", true) .Build(); var any = dataApi.Any("Employee", filter); if (any) Log.Info("There is Employee in the Department!!!");