/// <summary>
        /// Write an audit log
        /// </summary>
        /// <param name="auditText">The audit text</param>
        /// <param name="isAuditSuccess">True for a successful audit, false to write an audit failure</param>
        public static void WriteAudit(string auditText, bool isAuditSuccess)
        {
            var logType = DatabaseEventLog.EventLogType.AuditSuccess;

            if (!isAuditSuccess)
            {
                logType = DatabaseEventLog.EventLogType.AuditFailure;
            }

            Log.Write(auditText, SiteStart.GetHostIpAddress(), "Provider Portal Web Site", logType);
        }
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            GlobalConfiguration.Configure(WebApiConfig.Register);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            MvcHandler.DisableMvcResponseHeader = true;

            // Register Client Side Validation for Custom Regular Expression Attributes
            DataAnnotationsModelValidatorProvider.RegisterAdapter(typeof(ProviderPortalUrl), typeof(RegularExpressionAttributeAdapter));
            DataAnnotationsModelValidatorProvider.RegisterAdapter(typeof(ProviderPortalPostcode), typeof(RegularExpressionAttributeAdapter));

            // Initialise other site tasks
            SiteStart.Initialise();
        }