예제 #1
0
        public Reservation Get(long id)
        {
            var reservation = reservationBll.GetReservationById(id);

            reservation.FlexDesk                           = flexdeskProvider.GetById(reservation.FlexDeskId);
            reservation.FlexDesk.Department                = departmentProvider.GetById(reservation.FlexDesk.DepartmentId);
            reservation.FlexDesk.Department.Floor          = floorProvider.GetById(reservation.FlexDesk.Department.FloorId);
            reservation.FlexDesk.Department.Floor.Building = buildingProvider.GetById(reservation.FlexDesk.Department.Floor.BuildingId);
            reservation.User = userProvider.GetById(reservation.UserId);

            return(reservation);
        }
예제 #2
0
        public FlexDesk GetFlexDeskById(long id)
        {
            var flexdesk = flexdeskProvider.GetById(id);

            return(flexdesk);
        }