Exemplo n.º 1
0
        private ActionResult ObterVisaoProdutoPorId(long?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            Fabricante fabricante = fabricanteServico.ObterProdutoPorId((long)id);

            if (fabricante == null)
            {
                return(HttpNotFound());
            }

            return(View(fabricante));
        }