public IHttpActionResult addUser(JObject userInfo) { User user = new JavaScriptSerializer().Deserialize <User>(userInfo.ToString()); string message = userManager.AdicionarUser(user); if (message != null) { return(Ok(message)); } else { return(BadRequest()); } }