Ejemplo n.º 1
0
        public static string CreateUserAndAccount(string userName, string password, object propertyValues = null, bool requireConfirmationToken = false)
        {
            CodeFirstMembershipProvider CodeFirstMembership = System.Web.Security.Membership.Provider as CodeFirstMembershipProvider;

            IDictionary <string, object> values = null;

            if (propertyValues != null)
            {
                values = new RouteValueDictionary(propertyValues);
            }

            return(CodeFirstMembership.CreateUserAndAccount(userName, password, requireConfirmationToken, values));
        }
Ejemplo n.º 2
0
        public static string CreateAccount(string userName, string password, bool requireConfirmationToken = false)
        {
            CodeFirstMembershipProvider CodeFirstMembership = System.Web.Security.Membership.Provider as CodeFirstMembershipProvider;

            return(CodeFirstMembership.CreateAccount(userName, password, requireConfirmationToken));
        }