public static BaseViewModel GetOverviewViewModel(MainViewModel parent) { var dbContext = DBContextFactory.GetAdoDatabaseContext(); return(new OverviewViewModel(ref parent, new GenreLogic(dbContext), new ScheduleLogic(dbContext))); }
public static BaseViewModel GetPaymentViewModel(MainViewModel parent, Schedule selectedSchedule, IList <SelectionViewModel <TakenSeatViewModel> > selectedSeats) { return(new PaymentViewModel(ref parent, selectedSchedule, selectedSeats, new PaymentLogic(), new ReservationLogic(DBContextFactory.GetAdoDatabaseContext()))); }
public static BaseViewModel GetDetailViewModel(MainViewModel parent, Movie selectedMovie) { var dbContext = DBContextFactory.GetAdoDatabaseContext(); return(new DetailViewModel(ref parent, selectedMovie, new ScheduleLogic(dbContext), new ReservationLogic(dbContext), new SeatLogic(dbContext))); }