//select por id public ActionResult Details(int id) { var tarjeta = tar.BuscarTarjeta(id); var mostrar = Mapper.Map <Models.TbTarjetas>(tarjeta); return(View(mostrar)); }
//select por id public ActionResult Details(int id) { if (Session["UserEmail"] != null) { var tarjeta = tar.BuscarTarjeta(id); var mostrar = Mapper.Map <Models.TbTarjetas>(tarjeta); return(View(mostrar)); } else { return(RedirectToAction("Login", "Login")); } }