public void changeListSyncStatus(long pList, long pSyncStatus = SystemConstants.SYNC_STATUS_COMPLETED) { // Cambiar el estado de la lista local a Sincronizado LotteryListRepository listRepository = new LotteryListRepository(); LTL_LotteryList syncList = listRepository.getById(pList); syncList.SYS_SynchronyStatus = pSyncStatus; listRepository.save(syncList, syncList.LTL_Id, (e1, e2) => e1.copy(e2)); //Console.WriteLine("Estado cambiado a sincronizado: " + pList); }
private void printList(long pListId) { LotteryListRepository listRepository = new LotteryListRepository(); this.ticketPrintService.printList(listRepository.getById(pListId), this.getTicketType()); }