IDslCompilerContextRouteParameters Property |
var dataApi = ctx.Use<IDataApi>(); var employeeCode = ctx.RouteParameters.Get<string>("code"); var filter = FilterBuilder.Create().Eq("Active", true) .Eq("Code", employeeCode) .Build(); var result = dataApi.Search(DataObjectApiQuery .For("Employee") .Paging(0, 1) .FilterBy(filter)); var employee = result.Data.FirstOrDefault(); ctx.Output = employee;
Namespace: Casewhere.Runtime.DSL.CompilerContext