var result2 = db.Divisions.Select(f => new SelectListItem { Value = f.DivisionID.ToString(), Text = f.DivisionName }); ViewBag.SectionList =result1;
LINQ to Entities does not recognize the method 'System.String ToString()' method, and this method cannot be translated into a store expression.
Value = System.Data.Objects.SqlClient.SqlFunctions.StringConvert.StringConvert(f.DivisionID)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)