I am trying to find an object in my database that meets two conditions, I did a search on stackoverflow and found this one which looks exactly like what I need. However, I have this code:
if (db.MinimumProductInfo.Find(pc => pc.ItemCode == productInfoWithNote.ItemCode && pc.Region == productInfoWithNote.Region))
and I am receiving this error:
Cannot Convert Lambda Expression to type 'object[]' because it is not a delegate type.
MinimumProductInfo is my class and productInfoWithNote is the viewmodel that I pass in to the method.