Hello Friends,
Please help me for below query???
how to apply in below query where condition with && and || operatore????
in below query i have only one where x => x.Name.Contains(name)
return Json(context.Master1.Where(x => x.Name.Contains(name)).Select(s => s.Name).ToArray(), JsonRequestBehavior.AllowGet);
Linq query with where condition???
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Michal HabalcikRank #902 · 2.3K reputationPosted Dec 16, 2014, 11:33 PM EST
e.g.:
.Where(x => x.Name.Contains(name) && x.Name == "AAA").
dipti prasad76 reputationPosted Dec 17, 2014, 1:42 AM EST
My Problem is resolved...thanks a lotttttt....
Mukesh Kumar TiwariRank #1,774 · 844 reputationPosted Dec 17, 2014, 3:31 AM EST
return DbContext.Master1.Where(c => c.Name.contains(inputName).tolist();
u r working with web service and want to return data through JSON???