Esempio n. 1
0
        // GET: Enderecos/Details/5
        public ActionResult Details(int id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Endereco endereco = dao.Buscar(id);

            if (endereco == null)
            {
                return(HttpNotFound());
            }
            return(View(endereco));
        }