I have use this code get record list base on id but face a issue
string Categoryid = HttpContext.Request.Query["CatgeoryId"].SingleOrDefault();
var result = customEntityResult.Items.Select(x => (BlogPostDataModel)x.Model).Where(x => x.CategoryIds == Convert.ToInt32(Categoryid)).ToList());
Operator '==' cannot be applied to operands of type 'ICollection' and 'int'--this issue face

Sachin SinghRank #66 · 26.2K reputationPosted Apr 23, 2021, 3:34 AM EDT