.NET Framework/Embed for your organization/UserOwnsData/Controllers/EmbedInfoController.cs
/// <summary>
/// Returns Embed view when client is authorized
/// </summary>
/// <returns>Returns Embed view</returns>
Returns Embed view when client is authorized
Returns Embed view when client is authorized
[Authorize]
		public async Task<ActionResult> Embed()
		{
			try
			{
				return View("embed", new WorkspaceList { Workspaces = await PowerBIService.GetWorkspacesAsync() });
			}
			catch (Exception ex)
			{
				ErrorModel errorModel = new ErrorModel
				{
					ErrorCode = (HttpStatusCode)500,
					ErrorMessage = ex.ToString()
				};
				return View("Error", errorModel);
			}
		}
[ Authorize ] public async Task < ActionResult > Embed ( ) { try { return View ( " " , new WorkspaceList { Workspaces = await PowerBIService . GetWorkspacesAsync ( ) } ) ; } catch ( Exception ex ) { ErrorModel errorModel = new ErrorModel { ErrorCode = ( HttpStatusCode ) 500 , ErrorMessage = ex . ToString ( ) } ; return View ( " " , errorModel ) ; } }
Returns Embed view when client is authorized
Returns Embed view when client is authorized
Returns Embed view
Returns Embed view