Hi,
I'm trying to add a record to a database. My Model is fairly simple: A Project table with a companyId field that associates to a Company table.
Here's were I'm stuck..
var companyTemp = collection["company"];
var company = isspDB.Company.Where(co => co.companyId == 1).First();
What I basically need is:
var company = isspDB.Company.Where(co => co.companyId == collection["company"]).First();
But that doesn't work, "... does not take '1' arguments"