How to display only Active customer(isActive : true) in mvc.
MVC: How to display only Active customer
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajesh GamiRank #30 · 41.5K reputationPosted Jul 29, 2018, 7:12 PM EDT
Jenith ThakkarRank #789 · 2.9K reputationPosted Jul 29, 2018, 7:11 PM EDT
Like This
var CustomerList=db.Customers.where(l=>l.IsActive==true).toList();
And in VIewSIde Get this Customer List
If you still facing any issue then provide your code i will tell you the solution
Ar VhinRank #4,571 · 337 reputationPosted Jul 29, 2018, 7:23 PM EDT