Ability to set system and reseller lync and exchange mailbox plans as a default

plan added
This commit is contained in:
robvde 2012-10-07 12:12:44 +04:00
parent 555fb75d5d
commit 62f478010c
7 changed files with 112 additions and 2 deletions

View file

@ -2647,6 +2647,17 @@ namespace WebsitePanel.EnterpriseServer
else
ExchangeServerController.GetExchangeMailboxPlansByUser(0, user, ref mailboxPlans);
ExchangeOrganization ExchangeOrg = ObjectUtils.FillObjectFromDataReader<ExchangeOrganization>(DataProvider.GetExchangeOrganization(itemId));
if (ExchangeOrg != null)
{
foreach (ExchangeMailboxPlan p in mailboxPlans)
{
p.IsDefault = (p.MailboxPlanId == ExchangeOrg.ExchangeMailboxPlanID);
}
}
return mailboxPlans;
}
catch (Exception ex)