// GET: Clientes/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Cliente cliente = repCli.Find(id); if (cliente == null) { return(HttpNotFound()); } return(View(cliente)); }