This is my code for check value in one table
var Tagid = collection["TagNo"];
var qry = (from c1 in db.Table1 where c1.TagNo.ToString() ==Tagid select c1).Count();
if (qry != 1)
{
//Some code
}
I want to check same value in two tables how can i check?
modify my query