コード例 #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 Building GetBuildingById(long id)
        {
            var building = buildingProvider.GetById(id);

            return(building);
        }