public async Task <IActionResult> TicketsToBePaid(string date, string ticket = "", string user = "") { DateTime dt = Dates.ConverToDate(date, "es-DO"); var tickets = await _repository.GetTicketsAsync(MyCurrentUser.Get.OwnerId, dt, false, ticket, user, false, false, 0); return(PartialView("_TicketToBePaidPartial", tickets)); }
public async Task <IActionResult> MonitoringPlaysFilterx(long mode = 0, string play = "", long lottery = 0, string date = "") { DateTime df = Dates.ConverToDate(date, "es-DO"); var plays = await _repository.GetPlays(MyCurrentUser.Get.UserId, MyCurrentUser.Get.OwnerId, mode, play, lottery, df, df); return(PartialView("_PlayPartial", plays)); }
public async Task <IActionResult> MonitoringTicketsFilterx(string date, string ticket = "", string user = "", int status = 0) { DateTime df = Dates.ConverToDate(date, "es-DO"); var tickets = await _repository.GetTicketsAsync(MyCurrentUser.Get.OwnerId, df, true, ticket, user, false, true, 0, status); var vm = new LotterySaleView(); vm.Sales = tickets; return(PartialView("_TicketPartial", vm)); }
public async Task <IActionResult> MonitoringPlays(long mode = 0, string play = "", long lottery = 0, string date = "") { DateTime df = Dates.ConverToDate(date, "es-DO"); var plays = await _repository.GetPlays(MyCurrentUser.Get.UserId, MyCurrentUser.Get.OwnerId, mode, play, lottery, df, df); await FillLotteryAndLotteryModeCombo(); var vm = new PlayViewModel(); vm.Sale = new LotterySale(); vm.Items = plays; return(View(vm)); }