public ActionResult Details(Guid?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } BeneficiarioViewModel beneficarioViewModel = _beneficiarioAppServico.ObterPorId(id.Value); if (beneficarioViewModel == null) { return(HttpNotFound()); } return(View(beneficarioViewModel)); }
// GET: api/Beneficiarios/5 public BeneficiarioViewModel Get(Guid id) { return(_beneficiarioAppServico.ObterPorId(id)); }