Exemplo n.º 1
0
        // ***********************************************************************************
        // ================================ HELPER METHODS ===================================
        // ***********************************************************************************


        private void CreateCustomer(ref RegistrationVM session)
        {
            Fusebill.ApiWrapper.Dto.Post.Customer postCustomer = new ApiWrapper.Dto.Post.Customer
            {
                FirstName    = session.CustomerInformation.FirstName,
                LastName     = session.CustomerInformation.LastName,
                PrimaryEmail = session.CustomerInformation.PrimaryEmail,
                PrimaryPhone = session.CustomerInformation.PrimaryPhone
            };

            session.ReturnedCustomer = ApiClient.PostCustomer(postCustomer);
        }
        // ***********************************************************************************
        // ================================ HELPER METHODS ===================================
        // ***********************************************************************************
        private void CreateCustomer(ref RegistrationVM session)
        {
            Fusebill.ApiWrapper.Dto.Post.Customer postCustomer = new ApiWrapper.Dto.Post.Customer
            {
                FirstName = session.CustomerInformation.FirstName,
                LastName = session.CustomerInformation.LastName,
                PrimaryEmail = session.CustomerInformation.PrimaryEmail,
                PrimaryPhone = session.CustomerInformation.PrimaryPhone
            };

            session.ReturnedCustomer = ApiClient.PostCustomer(postCustomer);
        }