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 KumarPosted Apr 26, 2021, 12:45 PM
Sachin SinghPosted Apr 26, 2021, 12:32 PM
sankeerth mPosted Apr 26, 2021, 12:28 PM
Salman BegPosted Apr 26, 2021, 12:13 PM
Jignesh KumarPosted Apr 26, 2021, 12:11 PM