WebApiController refactoring