public void AddUserToChatroom(int id, [FromBody] User user) { try { service.AddUserToChatroom(id, user.UserID); } catch (ArgumentException) { throw new HttpResponseException(HttpStatusCode.NotAcceptable); } }