protected void Page_PreRender(object sender, EventArgs e) { GiftCertificatePaymentMethods = new List <int>(GiftCertificateService.GetCertificatePaymentMethodsID()); lvPaymentMethods.DataSource = PaymentService.GetAllPaymentMethods(true).Where(payment => payment.Type != PaymentType.GiftCertificate); lvPaymentMethods.DataBind(); GiftCertificateTaxes = TaxServices.GetCertificateTaxes().Select(tax => tax.TaxId).ToList(); lvTaxes.DataSource = TaxServices.GetTaxes(); lvTaxes.DataBind(); }