I had the following method in a controller before moving it to its own class, and its complaining about s => s.LocationAssignment
stating it cant change it from lambda to string because its a delgate.
Any one know what I have to change?
public static IEnumerable<Service> getAllService()
{
using (var db = new LocAppContext())
{
var service = db.Locations.Include(s => s.LocationAssignment);
var serv = (from s in db.Services
where s.active == true
select s).ToList();
return serv;
}
}