I should try this code But it didn't work properly.Please Give solution on this code
var patientList = (from b in GBill.GetList()
join p in GPatient.GetList()
on b.PatientId equals p.patientid
select new {
patientid = p.patientid,
patientName = p.patientName,
address = p.address,
age = p.age,
BillId = b.BillId,
GrandTotal = b.GrandTotal,
salutation= p.salutation =="Mr."?"Male":"FeMale",
VisitNo = b.VisitNo ==Convert.ToInt32( b.VisitNo >1 ? "Old" : "New")
}).ToList();
It show an error on Visit No;