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)); }
public ActionResult BucketImagesIndex() { var buckets = _bucketService.AllBuckets(); return(View(buckets)); }
public void OnGet() { Buckets = _bucketService.AllBuckets(); }