Fix error in build

This commit is contained in:
dev_amdtel 2014-04-15 00:24:20 +04:00
parent 3856809853
commit 4f8a7d435c

View file

@ -217,7 +217,7 @@ namespace WebsitePanel.Import.CsvBulk
private void GetMailboxPlans(int orgId) private void GetMailboxPlans(int orgId)
{ {
ExchangeMailboxPlan[] plans = ES.Services.ExchangeServer.GetExchangeMailboxPlans(orgId); ExchangeMailboxPlan[] plans = ES.Services.ExchangeServer.GetExchangeMailboxPlans(orgId, false);
foreach (ExchangeMailboxPlan plan in plans) foreach (ExchangeMailboxPlan plan in plans)
{ {
if (!planName2Id.ContainsKey(plan.MailboxPlan)) if (!planName2Id.ContainsKey(plan.MailboxPlan))
@ -574,7 +574,7 @@ namespace WebsitePanel.Import.CsvBulk
//create mailbox //create mailbox
//ES.Services.ExchangeServer. //ES.Services.ExchangeServer.
string accountName = string.Empty; string accountName = string.Empty;
int accountId = ES.Services.ExchangeServer.CreateMailbox(orgId, 0, ExchangeAccountType.Mailbox, accountName, displayName, name, domain, password, false, string.Empty, planId, string.Empty); int accountId = ES.Services.ExchangeServer.CreateMailbox(orgId, 0, ExchangeAccountType.Mailbox, accountName, displayName, name, domain, password, false, string.Empty, planId, -1, string.Empty);
if (accountId < 0) if (accountId < 0)
{ {
string errorMessage = GetErrorMessage(accountId); string errorMessage = GetErrorMessage(accountId);