adding Post an Ad logic in Middle tier