return (from s in db.StudentMarks
where s.Class == Class && s.Year == Year // this line
orderby s.Year, s.ExamType
select new StudentAddMarks()
{
--Obj
}).ToList();
I am going to return an Object
depending on the Class
and Year
params. I want to remove the where
condition when the Class
and Year
parames are null
or zero
.
Any ideas please.