Ejemplo n.º 1
0
        public ActionResult Index(Guid Guid)
        {
            var user_id        = User.Identity.GetUserId();
            var getTravel      = _tr.SelectTravel(Guid);
            var getTravelCombo = _tr.SelectCombo(Guid);

            bool check = _tr.CheckFavorite(Guid, user_id);

            if (check == true)
            {
                ViewBag.Check = 1;
            }
            else
            {
                ViewBag.Check = 0;
            }
            ViewBag.getTravel      = getTravel;
            ViewBag.getTravelCombo = getTravelCombo;
            return(View());
        }