protected void ReceivePostAddGroupToApp(PacketHeader header, Connection connection, GroupRequest request) { // ######################################################################## // This method requires authentication. // If user is not authorized then send UnAuthorized and end method. if (!Authorized(connection)) { TCPConnection.GetConnection(connection.ConnectionInfo).SendObject( PacketName.ReUnauthorized.ToString(), 1); return; } // ######################################################################## if (Administrator(connection)) { groupRepository.AddAppAccess(request.accountId, request.groupId); TCPConnection.GetConnection(connection.ConnectionInfo).SendObject( PacketName.ReUpdateAccountInformation.ToString(), GenericResponse.Success); } }