private void LoadPoints() { var pointPrograms = objOffer.CustomerGroupConditions.IncludeCondition[0].CustomerGroupID == SystemCacheData.GetAnyCustomerGroup().CustomerGroupID ? m_PointsProgram.GetAllowAnyCustomerPointsPrograms(): m_PointsProgram.GetPointsPrograms(); var data = from point in pointPrograms select new { ProgramID = point.ProgramID, ProgramName = point.ProgramName }; PointsJSON = data.ToJSON(); lbPoints.DataSource = data; lbPoints.DataBind(); }
private void GetAllPointsProgram() { AllPointsProgram = m_PointProgram.GetPointsPrograms(); }