public HttpResponseMessage AddInfo(AddCustomerAccountingInfoRequest model)
        {
            if (!ModelState.IsValid)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState));
            }

            ItemResponse <CustomerAccountingInfo> response = new ItemResponse <CustomerAccountingInfo>();

            response.Item = CustomerAccountingInfoService.UpdateInfo(model);
            if (model.IsFuelerLinxCustomer)
            {
                AddGUID(model);
            }
            return(Request.CreateResponse(response));
        }
        private void AddGUID(AddCustomerAccountingInfoRequest model)
        {
            PartnerServiceIntegration serviceIntegration = new PartnerServiceIntegration();

            serviceIntegration.ClientID      = model.CustClientID;
            serviceIntegration.AdminClientID = model.AdminClientID;

            PartnerServiceIntegrationsAPIController integrationAPIController =
                new PartnerServiceIntegrationsAPIController();


            integrationAPIController.AddGUID(ref serviceIntegration);
            if (serviceIntegration.Id == 0)
            {
                PartnerServiceIntegrations integrations = new PartnerServiceIntegrations();
                integrations.Update(serviceIntegration);
            }
        }