コード例 #1
0
        public ActionResult <ImpedimentoViewModel> Get(Guid id)
        {
            ImpedimentoViewModel impedimento = _impedimentoAppService.Consultar(id);

            if (impedimento == null)
            {
                return(NotFound());
            }

            return(Ok(impedimento));
        }
コード例 #2
0
        public ActionResult <ProjetoViewModel> Get(Guid id)
        {
            ProjetoViewModel projeto = _projetoAppService.Consultar(id);

            if (projeto == null)
            {
                return(NotFound());
            }

            return(Ok(projeto));
        }
コード例 #3
0
        public ActionResult <SistemaViewModel> Get(Guid id)
        {
            SistemaViewModel sistema = _sistemaAppService.Consultar(id);

            if (sistema == null)
            {
                return(NotFound());
            }

            return(Ok(sistema));
        }
コード例 #4
0
        public ActionResult <WorkflowViewModel> Get(Guid id)
        {
            WorkflowViewModel workflow = _workflowAppService.Consultar(id);

            if (workflow == null)
            {
                return(NotFound());
            }

            return(Ok(workflow));
        }
コード例 #5
0
        public ActionResult <TipoTarefaViewModel> Get(Guid id)
        {
            TipoTarefaViewModel tipoTarefa = _tipoTarefaAppService.Consultar(id);

            if (tipoTarefa == null)
            {
                return(NotFound());
            }

            return(Ok(tipoTarefa));
        }
コード例 #6
0
        public override async Task <TipoTarefaModel> Consultar(BaseRequest request, ServerCallContext context)
        {
            Guid            id     = new Guid(request.Id);
            TipoTarefaModel result = _mapper.Map <TipoTarefaModel>(_tipoTarefaAppService.Consultar(id));

            return(await Task.FromResult(result));
        }
コード例 #7
0
        public override async Task <ImpedimentoModel> Consultar(BaseRequest request, ServerCallContext context)
        {
            Guid             id     = new Guid(request.Id);
            ImpedimentoModel result = _mapper.Map <ImpedimentoModel>(_impedimentoAppService.Consultar(id));

            return(await Task.FromResult(result));
        }
コード例 #8
0
        public override async Task <WorkflowModel> Consultar(BaseRequest request, ServerCallContext context)
        {
            Guid          id     = new Guid(request.Id);
            WorkflowModel result = _mapper.Map <WorkflowModel>(_workflowAppService.Consultar(id));

            return(await Task.FromResult(result));
        }