﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using BForms.Models;
using BForms.Mvc;


namespace BForms.Docs
{
    public class MvcApplication : System.Web.HttpApplication
    {
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            //register BForms validation provider
            ModelValidatorProviders.Providers.Add(new BsModelValidatorProvider());

            BForms.Utilities.BsResourceManager.Register(Resources.Resource.ResourceManager);
            //BForms.Utilities.BsUIManager.Theme(BsTheme.Black);

            System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
            System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-US");

#if !DEBUG
            BForms.Utilities.BsConfigurationManager.Release(true);
#endif

        }
    }
}

﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using BForms.Models;
using BForms.Mvc;


namespace BForms.Docs
{
    public class MvcApplication : System.Web.HttpApplication
    {
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            //register BForms validation provider
            ModelValidatorProviders.Providers.Add(new BsModelValidatorProvider());

            BForms.Utilities.BsResourceManager.Register(Resources.Resource.ResourceManager);
            //BForms.Utilities.BsUIManager.Theme(BsTheme.Black);

#if !DEBUG
            BForms.Utilities.BsConfigurationManager.Release(true);
#endif

        }
    }
}

Revert "fixed mandatory field error message"
Revert "fixed mandatory field error message"

This reverts commit fe294ec07e8cf85ecea8f317b7aa2ee169bd2120.
