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); }
public Building GetBuildingById(long id) { var building = buildingProvider.GetById(id); return(building); }