@Html.DropDownListFor(model => model.CompanyName, new SelectList(Model.Select(i => i.CompanyName).Distinct()), new { @class = "input-large form-control" })
got the following error: <pre lang="xml">CS1061: 'System.Collections.Generic. CS1061: 'System.Collections.Generic.IEnumerable<Zykod.Data.Models.CUtilityModel>' does not contain a definition for 'CompanyName' and no extension method 'CompanyName' accepting a first argument of type 'System.Collections.Generic.IEnumerable<Zykod.Data.Models.CUtilityModel>' could be found (are you missing a using directive or an assembly reference?) ' does not contain a definition for 'CompanyName' and no extension method 'CompanyName' accepting a first argument of type 'System.Collections.Generic.IEnumerable<Zykod.Data.Models.CUtilityModel>' could be found (are you missing a using directive or an assembly reference?)</pre>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)