public EditRoomFrm()
        {
            InitializeComponent();
            var context = new GreenLandProjectEntities();

            roomReposity         = new RoomRepository(context);
            categoriesRepository = new CategoryRepository(context);
        }
        public CreateRoomFrm()
        {
            InitializeComponent();
            var dbContext = new GreenLandProjectEntities();

            roomReposity = new RoomRepository(dbContext);
            categories   = new CategoryRepository(dbContext);
        }
Exemple #3
0
 public RoomController(IRoomReposity reposity, IReservationRepository reservation, ICategoriesRepository categoriesRepository)
 {
     this.reposity             = reposity;
     this._reservation         = reservation;
     this.categoriesRepository = categoriesRepository;
 }
Exemple #4
0
 public ReservationController(IReservationRepository reservation, IRoomReposity roomReposity)
 {
     this._reservation = reservation;
     this.roomReposity = roomReposity;
 }
Exemple #5
0
 public Roomsfrm()
 {
     InitializeComponent();
     roomReposity = new RoomRepository(new GreenLandProjectEntities());
 }