public void btnAddServiceLevel_Click(object sender, EventArgs e)
        {
            Page.Validate("CreateServiceLevel");

            if (!Page.IsValid)
                return;

            ServiceLevel serviceLevel = new ServiceLevel();

            int res = ES.Services.Organizations.AddSupportServiceLevel(txtServiceLevelName.Text, txtServiceLevelDescr.Text);

            if (res < 0)
            {
                messageBox.ShowErrorMessage("ADD_SERVICE_LEVEL");

                return;
            }

            txtServiceLevelName.Text = string.Empty;
            txtServiceLevelDescr.Text = string.Empty;

            BindServiceLevels();
        }
        private bool CheckServiceLevelQuota(ServiceLevel serviceLevel, List<QuotaValueInfo> quotas)
        {
            var quota = quotas.FirstOrDefault(q => q.QuotaName.Replace(Quotas.SERVICE_LEVELS, "") == serviceLevel.LevelName);

            if (quota == null)
                return false;

            if (quota.QuotaAllocatedValue == -1)
                return true;

            return quota.QuotaAllocatedValue > quota.QuotaUsedValue;
        }