enable NuGet Package Restore
Convert some statements to use Linq

Based on Resharper suggestions