Пример #1
0
        public IActionResult BucketIndex()
        {
            var buckets = _bucketService.AllBuckets();
            var cutList = _bucketCutService.AllBucketCuts();

            if (buckets != null)
            {
                buckets.ForEach(item =>
                {
                    item.BucketCuts = cutList.Where(o => o.bucket_id == item.id).ToList();
                });
            }
            return(View(buckets));
        }
Пример #2
0
        public ActionResult BucketImagesIndex()
        {
            var buckets = _bucketService.AllBuckets();

            return(View(buckets));
        }
Пример #3
0
 public void OnGet()
 {
     Buckets = _bucketService.AllBuckets();
 }