// GET: Inquilino/Details/5
 public ActionResult Details(int id)
 {
     try
     {
         var inquilino = repositorio.ObtenerPorId(id);
         return(View(inquilino));
     }
     catch (Exception e)
     {
         ViewBag.Error      = e.Message;
         ViewBag.StackTrate = e.StackTrace;
         return(View());
     }
 }
Exemple #2
0
 public ActionResult Edit(int id)
 {
     try
     {
         var p = repositorio.ObtenerPorId(id);
         if (TempData.ContainsKey("Mensaje"))
         {
             ViewBag.Mensaje = TempData["Mensaje"];
         }
         if (TempData.ContainsKey("Error"))
         {
             ViewBag.Error = TempData["Error"];
         }
         return(View(p));
     }
     catch (Exception)
     {
         throw;
     }
 }
 // GET: InquilinosController/Details/5
 public ActionResult Details(int id, string returnUrl)
 {
     TempData["returnUrl"] = String.IsNullOrEmpty(returnUrl) ? "/" + RouteData.Values["controller"].ToString() : returnUrl;
     return(View(repositorio.ObtenerPorId(id)));
 }
Exemple #4
0
        public ActionResult Details(int id)
        {
            var entidad = repositorio.ObtenerPorId(id);

            return(View(entidad));
        }