TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Guest User
Tech Writer
43
7k
Get record base on ID.
Apr 23 2021 7:31 AM
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<int>' and 'int'--this issue face
Reply
Answers (
1
)
How to Select default value in dropdown in mvc base on condition
Face Error Get Image By Id.