public void CreateAdmin() { if (UserManagment.AdminCount() == 0) { UserManagment.RegisterUser("admin", "123", "Default name", "*****@*****.**", "ул. Садовая, д. 12", "77-12-12", "Bill McCafferty", Role.Admin, true, PriceType.Price1, false, 0); } }
protected void Application_Start(object sender, EventArgs e) { log4net.Config.XmlConfigurator.Configure(); //HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize(); if (UserManagment.AdminCount() == 0) { UserManagment.RegisterUser("admin", "123", "Default name", "*****@*****.**", "ул. Садовая, д. 12", "77-12-12", "Bill McCafferty", Role.Admin, true, PriceType.Price1, false, 0); } }