public async Task Handle(Queries.CompleteTodos query, IMessageHandlerContext ctx) { var results = ctx.App <UnitOfWork>().GetAll().Where(x => !x.Active); await ctx.Result(results, results.Count(), 0).ConfigureAwait(false); }