// GET: Ticket public async Task<ActionResult> Index() { var model = new IndexTicketViewModel(); if(CurrentDrawing != null) { model.Tickets = await repository.GetNotPayedTicketsAsync(CurrentUser.Id); } return View(model); }
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); }