Swapped linq with entity framework
changed to entity framework