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 Floor GetFloorById(long id) { var floor = floorProvider.GetById(id); return(floor); }