Modified for MVC5 & WebApi2 conversion.