add.cshtml(38): error CS0828: 不能将“方法组”赋值给匿名类型属性
原因
@Html.PasswordFor(m => m.UserPassword, new { @class = "form-control", value = @Model.UserPassword })
value前面不要要加@符号
@Html.PasswordFor(m => m.UserPassword, new { @class = "form-control", @value = @Model.UserPassword })