private Subscription CreateSubscription(RegistrationVM session) { var postSubscription = new ApiWrapper.Dto.Post.Subscription { CustomerId = session.ReturnedCustomer.Id, PlanFrequencyId = session.SelectedPlanFrequencyID }; return(ApiClient.PostSubscription(postSubscription)); }
/// <summary> /// To create a subscription, remember to specify the subscription and the target customer by using the planFrequencyID and the customerID fields. /// </summary> /// <returns></returns> public void CreateSubscription(CreateSubscriptionVM createSubscriptionVM) { var postSubscription = new ApiWrapper.Dto.Post.Subscription { CustomerId = Convert.ToInt64(createSubscriptionVM.CustomerID), PlanFrequencyId = createSubscriptionVM.PlanFrequencyID }; ApiClient.PostSubscription(postSubscription); }
public void CreateSubscription(CreateSubscriptionVM createSubscriptionVM) { var postSubscription = new ApiWrapper.Dto.Post.Subscription { CustomerId = Convert.ToInt64(createSubscriptionVM.CustomerID), PlanFrequencyId = createSubscriptionVM.PlanFrequencyID }; ApiClient.PostSubscription(postSubscription); }
private Subscription CreateSubscription(RegistrationVM session) { var postSubscription = new ApiWrapper.Dto.Post.Subscription { CustomerId = session.ReturnedCustomer.Id, PlanFrequencyId = session.SelectedPlanFrequencyID }; return ApiClient.PostSubscription(postSubscription); }