public override IActionResult Get() { base.Get(); // Obtain your OAuth token string accessToken = RequestItemsService.User.AccessToken; // Represents your {ACCESS_TOKEN} var basePath = $"{RequestItemsService.Session.RoomsApiBasePath}/restapi"; // Base API path string accountId = RequestItemsService.Session.AccountId; // Represents your {ACCOUNT_ID} try { // Get Rooms var rooms = CreateExternalFormFillSession.GetRooms(basePath, accessToken, accountId); RoomDocumentModel = new RoomDocumentModel { Rooms = rooms.Rooms }; return(View("Eg06", this)); } catch (ApiException apiException) { ViewBag.errorCode = apiException.ErrorCode; ViewBag.errorMessage = apiException.Message; return(View("Error")); } }