public ActionResult <ImpedimentoTarefaViewModel> Get(Guid id)
        {
            ImpedimentoTarefaViewModel impedimentoTarefa = _impedimentoTarefaAppService.Consultar(id);

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

            return(Ok(impedimentoTarefa));
        }
Beispiel #2
0
        public IActionResult OnGet(Guid id)
        {
            ImpedimentoTarefa  = _impedimentoTarefaAppService.Consultar(id);
            SelectImpedimentos = new SelectList(_impedimentoAppService.Listar(), "Id", "Nome");

            return(Page());
        }
Beispiel #3
0
        public override async Task <ImpedimentoTarefaModel> Consultar(BaseRequest request, ServerCallContext context)
        {
            Guid id = new Guid(request.Id);
            ImpedimentoTarefaModel result = _mapper.Map <ImpedimentoTarefaModel>(_impedimentoTarefaAppService.Consultar(id));

            return(await Task.FromResult(result));
        }
Beispiel #4
0
        public IActionResult OnGet(Guid id)
        {
            ImpedimentoTarefa = _impedimentoTarefaAppService.Consultar(id);

            return(Page());
        }