Example #1
0
        public override async Task <BaseReply> AlterarPorWorkflow(AlterarPorWorkflowRequest request, ServerCallContext context)
        {
            Guid idTarefa   = new Guid(request.IdTarefa);
            Guid idWorkflow = new Guid(request.IdWorkflow);

            return(await Task.FromResult(new BaseReply
            {
                Sucesso = _tarefaAppService.AlterarPorWorkflow(idTarefa, idWorkflow)
            }));
        }
Example #2
0
        public async Task <bool> AlterarPorWorkflowAsync(Guid idTarefa, Guid idWorkflow)
        {
            AlterarPorWorkflowRequest request = new AlterarPorWorkflowRequest
            {
                IdTarefa   = idTarefa.ToString(),
                IdWorkflow = idWorkflow.ToString()
            };

            BaseReply reply = await _client.AlterarPorWorkflowAsync(request);

            return(reply.Sucesso);
        }