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); }
public RoomController(IRoomReposity reposity, IReservationRepository reservation, ICategoriesRepository categoriesRepository) { this.reposity = reposity; this._reservation = reservation; this.categoriesRepository = categoriesRepository; }
public ReservationController(IReservationRepository reservation, IRoomReposity roomReposity) { this._reservation = reservation; this.roomReposity = roomReposity; }
public Roomsfrm() { InitializeComponent(); roomReposity = new RoomRepository(new GreenLandProjectEntities()); }