Esempio n. 1
0
        protected override ShowTimeViewModel ViewModelLoader(ShowTimeViewModel vm)
        {
            vm.Movies   = _setupSvc.GetAll <Movie>();
            vm.Theatres = _setupSvc.GetAll <Theatre>();

            return(vm);
        }
Esempio n. 2
0
        protected override TicketViewModel ViewModelLoader(TicketViewModel vm = null)
        {
            vm = base.ViewModelLoader(vm);

            vm.ShowTimes      = _masterDataSvc.GetAll <ShowTime, ShowTimeForm>(false, "Movie", "Theatre");
            vm.PaymentMethods = Service.GetPaymentMethods();

            return(vm);
        }