// GET: Banking/Create public IActionResult Create() { var model = new BankingViewModel { ListZone = _bankingRepository.GetComboZonas() }; return(this.View(model)); }
public async Task <IActionResult> Create() { var banking = await _dataContext.Bankings.LastAsync(); //var _model = _converterHelper.ToMaxIdBankingAsync(banking); var model = new BankingViewModel { Document = $"{banking.Document}" }; return(View(model)); }
private BankingViewModel ToBankingSetting(BankingViewModel setting) { return(new BankingViewModel { //MinutesCancelTicket = setting.MinutesCancelTicket, //MaximumTicketsCancelDay = setting.MaximumTicketsCancelDay, //MinimumTicketAmount = setting.MinimumTicketAmount //MinimumPlaysBuyPoints = setting.MinimumPlaysBuyPoints, //DailySaleLimit = setting.DailySaleLimit, //DeactivationBalance = setting.DeactivationBalance, //MinimumPlaysFuture = setting.MinimumPlaysFuture, //MultiPlayMoneyLine = setting.MultiPlayMoneyLine, //Active = setting.Active, //ToPrint = setting.ToPrint. //AllowReprintTickets = setting.AllowReprintTickets, //ControlWinningTickets = setting.ControlWinningTickets, //JustSendSms = setting.JustSendSms, //Language = setting.Language, //LengthNumericalCode = setting.LengthNumericalCode, //AllowPlaysTeamParent = setting.AllowPlaysTeamParent, //ShowBalanceSalesTransactions = setting.ShowBalanceSalesTransactions }); }