diff --git a/Src/Services/BrandService.cs b/Src/Services/BrandService.cs index 688f28ce6..9bb9aed74 100644 --- a/Src/Services/BrandService.cs +++ b/Src/Services/BrandService.cs @@ -36,5 +36,17 @@ public void DisassociateSubcollection(int brandId, int subcollectionId) brand.Subcollections.Remove(subcollection); _context.SaveChanges(); } + + public bool BrandExists(int brandId) + { + return _context.Brands.Any(b => b.Id == brandId); + } + + public bool SubcollectionExists(int subcollectionId) + { + return _context.Subcollections.Any(s => s.Id == subcollectionId); + } + } + } }