Esempio n. 1
0
        public ActionResult Index()
        {
            var response = new List <BucketResponse>();

            var buckets = BucketsHelper.GetAllBuckets("/sitecore/content/");

            foreach (var bucket in buckets)
            {
                response.Add(new BucketResponse {
                    BucketId = bucket.ID.Guid, BucketName = bucket.DisplayName
                });
            }

            return(View(response));
        }
        public ActionResult GetBuckets()
        {
            var response = new List <BucketResponse>();

            var buckets = BucketsHelper.GetAllBuckets("/sitecore/content/");

            foreach (var bucket in buckets)
            {
                response.Add(new BucketResponse {
                    BucketId = bucket.ID.Guid, BucketName = bucket.DisplayName
                });
            }

            return(Json(response, JsonRequestBehavior.AllowGet));
        }