private void GetAllSVPrograms() { AllSVPrograms = m_StoredValueProgram.GetStoredValuePrograms(); }
private void LoadSV() { var svPrograms = objOffer.CustomerGroupConditions.IncludeCondition[0].CustomerGroupID == SystemCacheData.GetAnyCustomerGroup().CustomerGroupID ? m_SVProgram.GetStoredValueAllowAnyCustomerPrograms(false):m_SVProgram.GetStoredValuePrograms(); var data = from sv in svPrograms select new { SVProgramID = sv.SVProgramID, ProgramName = sv.ProgramName }; StoredValueJSON = data.ToJSON(); lbSV.DataSource = data; lbSV.DataBind(); }