views:

341

answers:

2

In the code bdehind && syntax does not work, any ideas?

Entities ctx3 = new Entities();
var uniqueQuote = from quot in ctx3.Quotes.Include("aspnet_Users").Include("Enquiries")
  where quot.Enquiries.EnquiryId == selectedEnquiryId &&
     quot.aspnet_Users.UserId == currentUserId
  orderby quot.QuotePrice
  select quot;

Error 2 Delegate 'System.Func' does not take '1' arguments C:\LocalGarageFinder\LocalGarageFinder\EnquiryDetail.aspx.cs 56 33 LocalGarageFinder

+2  A: 

The code as written is fine. If you are receiving some sort of error, please let us know.

David Pfeffer
A: 

It is solved, just had to instanciate currentUserId Thank you all!

Alex