Ejemplo n.º 1
0
        // GET: Inmuebles/Details/5
        public ActionResult Details(int id)
        {
            var inmu = repo.GetById(id);

            if (inmu != null)
            {
                return(View(inmu));
            }
            else
            {
                TempData["Error"] = "No se encontro el inmueble";
                return(RedirectToAction(nameof(Index)));
            }
        }