public IHttpActionResult RegisterPushToken([FromUri] string sessionKey, [FromBody] string pushToken) { var pushService = new PushService(); var ok = pushService.RegisterPushToken(sessionKey, pushToken); if (ok) { return(Ok()); } return(Unauthorized()); }