public async Task <string> Ping() { var version = (await _handlerDispatcher.Handle <PingQuery, string>(new PingQuery())).Data; return(version); }
public async Task <ApiResult> GetAll() { return(await _handlerDispatcher.Handle <GetAllToDoQuery, List <ToDo> >(new GetAllToDoQuery())); }