public ActionResult Details(Guid?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } ClienteViewModel clienteViewModel = _clienteApplication.ObterPorId(id.Value); if (clienteViewModel == null) { return(HttpNotFound()); } return(View(clienteViewModel)); }