I want to select my price level in database to compare with the an integer number. But It is error : Operator \'==\' cannot be applied to operands of type \'System.Linq.IQue
Here is my suggestion:
if (list_pricelevel.First() == 3) { Response.Write("Welcome"); }
This may rise a NullReferenceException in case there is no item in Customers satisfying where c.WebAccount == userName.
where c.WebAccount == userName
Explanation:
list_pricelevel is a IEnumerable of items satisfying your where clause.