Code from reading ASP.NET Web API 2