Client and sever side Code for admin setrole.