[Required] public String UserId { get; set; }
<pre lang="c#">Invalid column name 'UserId'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Invalid column name 'UserId'.
return View(db.Voitures.Where(a => a.UserId == HttpContext.User.Identity.Name).ToList());
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)