foreach (var usage in usages.Where(u => u.LanguageBranch == CurrentPage.LanguageBranch && u.ContentLink == CurrentPage.ContentLink))
could this work?
The id contentlink of the currentPage is different than the id of the content link of the usage item.
usages.Where( u => u.LanguageBranch.Trim() == currentBlock.CurrentPage.LanguageBranch.Trim() && u.ContentLink.ID == currentBlock.CurrentPage.ContentLink.ID );
So what am I doing wrong? Are the id's of the usage items the id's of the blocks themselves?
I try to get the blocks of a certain type like below, but I get all the usages of the type. How can I get the the blocks for the current page the user is currently on, in the current language?