var exist = db.Registration.FirstOrDefault(x => x.MOBILENUMBER == mobilenumber && x.EMAIL == email );
return exist;
while updating the record i need to check mobilenumbaer and email. with same id. unable to update please help me out.
ex : id =280 mnumber :9876545 name:David
id =281 mnumber:890765 name:johnson
updating id=280 if i update name it is not getting updated it saying mobile number already exist.

Jignesh KumarRank #91 · 22.9K reputationPosted Apr 26, 2021, 8:11 AM EDT
Salman BegRank #284 · 8.8K reputationPosted Apr 26, 2021, 8:13 AM EDT
sankeerth mRank #3,390 · 425 reputationPosted Apr 26, 2021, 8:28 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Apr 26, 2021, 8:32 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Apr 26, 2021, 8:45 AM EDT