Add Ioc container and returning of Id