public JsonResult assets(string assetId, bool getFiles) { string authToken = homeController.GetAuthToken(this.Request, this.Response); MediaClient mediaClient = new MediaClient(authToken); Asset[] assets = mediaClient.GetAssets(authToken, assetId, getFiles); return(Json(assets)); }
public JsonResult children(string assetId) { string authToken = homeController.GetAuthToken(this.Request, this.Response); MediaClient mediaClient = new MediaClient(authToken); MediaAsset[] assets = mediaClient.GetAssets(assetId); return(Json(assets)); }