예제 #1
0
        public ActionResult Index()
        {
            var       userID      = User.Identity.GetUserId();
            Mytickets Tickethelp  = new Mytickets();
            var       userTickets = Tickethelp.ListOfUserTickets(userID);

            return(View(userTickets));
        }
        public ActionResult Create()
        {
            var       userID      = User.Identity.GetUserId();
            Mytickets Tickethelp  = new Mytickets();
            var       userTickets = Tickethelp.ListOfUserTickets(userID);

            ViewBag.TicketID = new SelectList(userTickets, "ID", "Title");
            return(View());
        }