public ActionResult <ImpedimentoViewModel> Get(Guid id) { ImpedimentoViewModel impedimento = _impedimentoAppService.Consultar(id); if (impedimento == null) { return(NotFound()); } return(Ok(impedimento)); }
public IActionResult OnGet(Guid id) { Impedimento = _impedimentoAppService.Consultar(id); return(Page()); }