Exemplo n.º 1
0
        public static string CreatePortalUser(this Employee Employee, string UserName, string Password, string EmailAdress, string FirstName, string LastName, string Database)
        {
            try
            {
                KeyValuePair <HttpStatusCode, string> result = new DotNetNukeApi(Ignyt.Framework.Application.MyWorkbench).CreateUser(UserName, Password, EmailAdress, FirstName, LastName, Database);

                return(result.ToString());
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 2
0
 public MultiTenantHelper(Application Application, string CurrentDatabase)
 {
     this.Database      = CurrentDatabase;
     this.DotNetNukeApi = new DotNetNukeApi(Application);
 }