Exemplo n.º 1
0
        public async Task <string> Ping()
        {
            var version = (await _handlerDispatcher.Handle <PingQuery, string>(new PingQuery())).Data;

            return(version);
        }
Exemplo n.º 2
0
 public async Task <ApiResult> GetAll()
 {
     return(await _handlerDispatcher.Handle <GetAllToDoQuery, List <ToDo> >(new GetAllToDoQuery()));
 }