public ActionResult <ImpedimentoTarefaViewModel> Get(Guid id) { ImpedimentoTarefaViewModel impedimentoTarefa = _impedimentoTarefaAppService.Consultar(id); if (impedimentoTarefa == null) { return(NotFound()); } return(Ok(impedimentoTarefa)); }
public IActionResult OnGet(Guid id) { ImpedimentoTarefa = _impedimentoTarefaAppService.Consultar(id); SelectImpedimentos = new SelectList(_impedimentoAppService.Listar(), "Id", "Nome"); return(Page()); }
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)); }
public IActionResult OnGet(Guid id) { ImpedimentoTarefa = _impedimentoTarefaAppService.Consultar(id); return(Page()); }