public List <RoomScheduleViewModel> GetAllRoomSchedule(int departmentId) { List <RoomScheduleViewModel> aRoomSchedule = aRoomGateway.ViewRoomSchedule(departmentId); foreach (RoomScheduleViewModel aRoomInfo in aRoomSchedule) { aRoomInfo.RoomDescription = aRoomGateway.GetRoomDescription(aRoomInfo.CourseId); if (aRoomInfo.RoomDescription == null) { aRoomInfo.RoomDescription = "Not scheduled yet"; } } return(aRoomSchedule); }