public static void BuildContainer()
        {
            var builder = new ContainerBuilder();
            ConfigureAndRegisterUserIdentityModule(builder);

            ConfigureAndRegisterDataModule(builder);
            ConfigureAndRegisterControllers(builder);
            RegisterModules(builder);

            Container = builder.Build();
            SetSpecificationScopeProvider();
            InitialiseDatabaseAndWebSecurity();
            Container.InitialiseAutoMapper(Container.BeginLifetimeScope().Resolve);
        }