public DepartmentController(IDepartmentBll departmentBll, IFlexDeskBll flexDeskBll, IFloorBll floorBll, IUserBll userBll)
 {
     this.departmentBll = departmentBll;
     this.flexDeskBll   = flexDeskBll;
     this.floorBll      = floorBll;
     this.userBll       = userBll;
 }
Exemplo n.º 2
0
        public IEnumerable <ReservationFE> GetReservations(IFlexDeskBll flexDeskBll, IEnumerable <Reservation> reservations)
        {
            List <ReservationFE> reservationsFE = new List <ReservationFE>();

            foreach (var item in reservations)
            {
                reservationsFE.Add(new ReservationFE(flexDeskBll, item));
            }

            return(reservationsFE);
        }
Exemplo n.º 3
0
 public ReservationFE(IFlexDeskBll flexDeskBll, Reservation res)
 {
     ReservationId = res.ReservationId;
     StartDate     = res.StartDate;
     EndDate       = res.EndDate;
     Creator       = res.Creator;
     CreationDate  = res.CreationDate;
     FlexDeskId    = res.FlexDeskId;
     UserId        = res.UserId;
     FlexDesk      = flexDeskBll.GetFlexDeskById(res.FlexDeskId);
 }
 public ReservationController(IAbsenceBll absenceBll, IReservationBll reservationBll, IUserBll userBll, IFloorBll floorBll, IBuildingBll buildingBll, IDepartmentBll departmentBll, IFlexDeskBll flexDeskBll)
 {
     this.absenceBll     = absenceBll;
     this.reservationBll = reservationBll;
     this.userBll        = userBll;
     this.buildingBll    = buildingBll;
     this.floorBll       = floorBll;
     this.departmentBll  = departmentBll;
     this.flexDeskBll    = flexDeskBll;
     this.rvm            = new ReservationViewModel();
 }
 public FlexDeskController(IFlexDeskBll flexDeskBll)
 {
     this.flexDeskBll = flexDeskBll;
 }
Exemplo n.º 6
0
 public FlexDeskController(IFlexDeskBll flexDeskBll, IUserBll userBll)
 {
     this.flexDeskBll = flexDeskBll;
     this.userBll     = userBll;
 }