Converted Azure API to OWIN