Esempio n. 1
0
        // GET: Ticket
        public async Task<ActionResult> Index()
        {
            var model = new IndexTicketViewModel();
            if(CurrentDrawing != null)
            {
                model.Tickets = await repository.GetNotPayedTicketsAsync(CurrentUser.Id);

            }
            return View(model);
        }
Esempio n. 2
0
 public async Task<ActionResult> PurchasedTickets()
 {
     var model = new IndexTicketViewModel();
     if (CurrentDrawing != null)
     {
         model.Tickets = await repository.GetTicketsByUserDrawingIdsAsync(CurrentUser.Id, CurrentDrawing.Id);
     }
     return View("Index", model);
 }