private void ResolveDepedencies() { m_offer = CurrentRequest.Resolver.Resolve <CMS.AMS.Contract.IOffer>(); m_CustGroup = CurrentRequest.Resolver.Resolve <CMS.AMS.Contract.ICustomerGroups>(); m_CustCondition = CurrentRequest.Resolver.Resolve <CMS.AMS.Contract.ICustomerGroupCondition>(); m_OAWService = CurrentRequest.Resolver.Resolve <IOfferApprovalWorkflowService>(); }
// method to get customer groups public static CustomerGroup[] List(string apiUrl, string sessionId, object[] args) { ICustomerGroups proxy = (ICustomerGroups)XmlRpcProxyGen.Create(typeof(ICustomerGroups)); proxy.Url = apiUrl; return(proxy.List(sessionId, _customer_group_list, args)); }