public RateViewModel(IParkingLotsRepository parkingLotsRepository) { _parkingLotsRepository = parkingLotsRepository; LoadData(); UpdateCommand = new DelegateCommand(Update); CancelCommand = new DelegateCommand(Cancel); }
public CheckOutViewModel(IParkingsRepository parkingsRepository, ICustomersRepository customersRepository, IParkingLotsRepository parkingLotsRepository, IMonthlyIncomesRepository monthlyIncomesRepository, ISlotsRepository slotsRepository) { _parkingsRepository = parkingsRepository; _customersRepository = customersRepository; _parkingLotsRepository = parkingLotsRepository; _monthlyIncomesRepository = monthlyIncomesRepository; _slotsRepository = slotsRepository; Task.WaitAll(Task.Run(async() => await Load())); ConfirmCommand = new DelegateCommand(Confirm); CheckOutCommand = new DelegateCommand(CheckOut); ClearTheView(); }
public ParkingDataHandler(IParkingSpotsRepository spotsRepo, ILogger <ParkingDataHandler> logger, IParkingLotsRepository lotsRepo) { _spotsRepo = spotsRepo; _logger = logger; _lotsRepo = lotsRepo; }
public ParkingLotHandler(ILogger <ParkingLotHandler> logger, IParkingLotsRepository lotRepo) { _logger = logger; _lotRepo = lotRepo; }