/// <summary> /// Create a new membership account /// </summary> /// <param name="providerUserKey">Primary key in the data source</param> /// <param name="applicationName">Name of the application that the account is created for</param> /// <param name="username">User name</param> /// <param name="email">Email address</param> /// <returns> /// Created account /// </returns> public IMembershipAccount Create(object providerUserKey, string applicationName, string username, string email) { var account = new AccountDocument { ApplicationName = applicationName, UserName = username, Email = email, ProviderUserKey = providerUserKey, CreatedAt = DateTime.Now }; return(account); }
/// <summary> /// Create a new membership account /// </summary> /// <param name="providerUserKey">Primary key in the data source</param> /// <param name="applicationName">Name of the application that the account is created for</param> /// <param name="username">User name</param> /// <param name="email">Email address</param> /// <returns> /// Created account /// </returns> public IMembershipAccount Create(object providerUserKey, string applicationName, string username, string email) { var account = new AccountDocument { ApplicationName = applicationName, UserName = username, Email = email, ProviderUserKey = providerUserKey, CreatedAt = DateTime.Now }; return account; }