If you do not want these two profiles at the same time, you can have two different gatt db files and the switch from one Gatt db to another while restarting the BLE stack. Gatt Db files are nothing but ble_gatt.c which is generated when you build the project
Thanks for response. Is there any example with this? It will be helpful. May I do this at the same time?