private ActionResult ObterVisaoVendedorPorId(long?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Vendedor vendedor = vendedorServico.ObterVendedorPorId((long)id); if (vendedor == null) { return(HttpNotFound()); } return(View(vendedor)); }