private async Task <object> ReadErrors(string correlationId, Parameters args) { var filter = FilterParams.FromValue(args.Get("filter")); var paging = PagingParams.FromValue(args.Get("paging")); return(await _loggingBusinessLogic.ReadErrorsAsync(correlationId, filter, paging)); }
private ICommand MakeGetLimitsCommand() { return(new Command( "get_limits", new ObjectSchema() .WithOptionalProperty("filter", new FilterParamsSchema()) .WithOptionalProperty("paging", new PagingParamsSchema()), async(correlationId, parameters) => { var filter = FilterParams.FromValue(parameters.Get("filter")); var paging = PagingParams.FromValue(parameters.Get("paging")); return await _controller.GetLimitsAsync(correlationId, filter, paging); })); }
private ICommand MakeGetSectionIdsCommand() { return(new Command( "get_section_ids", new ObjectSchema() .WithOptionalProperty("filter", new FilterParamsSchema()) .WithOptionalProperty("paging", new PagingParamsSchema()), async(correlationId, args) => { FilterParams filter = FilterParams.FromValue(args.Get("filter")); PagingParams paging = PagingParams.FromValue(args.Get("paging")); return await _logic.GetSectionIdsAsync(correlationId, filter, paging); })); }
private ICommand MakeGetUsersPreferencesCommand() { return(new Command( "get_user_preferences", new ObjectSchema() .WithOptionalProperty("filter", new FilterParamsSchema()) .WithOptionalProperty("paging", new PagingParamsSchema()), async(correlationId, parameters) => { var filter = FilterParams.FromValue(parameters.Get("filter")); var paging = PagingParams.FromValue(parameters.Get("paging")); return await _logic.GetUsersPreferencesAsync(correlationId, filter, paging); })); }
private ICommand MakeGetPageByFilterCommand() { return(new Command( "get_dummies", new ObjectSchema() .WithOptionalProperty("correlation_id", typeof(string)) .WithOptionalProperty("filter", new FilterParamsSchema()) .WithOptionalProperty("paging", new PagingParamsSchema()), async(correlationId, args) => { var filter = FilterParams.FromValue(args.Get("filter")); var paging = PagingParams.FromValue(args.Get("paging")); return await _controller.GetPageByFilterAsync(correlationId, filter, paging); })); }