Hi
In a custom class I'm trying to get all items by a specific type.
The type is Customers.
I have tried using the IUmbracoContextAccessor returning IUmbracoContext and use the GetContent and GetByContentType which either I don't know what to pass into the function or it's a single IPublishedContent but it should be a list of all the Customers I have.
Could anyone provide a simple example for me to follow please.
Thanks
b
bgunnarsson
06/28/2024, 11:48 AM
.Where(x => x.IsDocumentType("alias")) might be what you are looking for.