public CompanyBranchOutput CompanyBranchIU(CompanyBranchIU model)
        {
            //BranchResponse resbranch = new BranchResponse();
            CompanyBranchOutput res = new CompanyBranchOutput();


            var resp = _AccountManagementService.CompanyIU(model.company_IU);

            string responseInString = "";

            if (resp.companyID == null)
            {
                res.description = "Company data creation have a problem!";
                res.id          = 0;
            }
            else
            {
                try
                {
                    using (var wb = new WebClient())
                    {
                        string url = "http://localhost:1006/api/TenantDefaultSetup/BranchIU";

                        //string url = "http://localhost:10006/api/TenantDefaultSetup/BranchIU";
                        model.Branch_IU[0].company_series_code = resp.company_series_code;

                        model.Branch_IU[0].company_id = resp.companyID;

                        wb.Headers[HttpRequestHeader.ContentType] = "application/json";
                        string Stringdata = JsonConvert.SerializeObject(model.Branch_IU);
                        responseInString = wb.UploadString(url, Stringdata);
                        //string HtmlResult = wb.UploadValues(url, data);

                        //var response = wb.UploadValues(url, "POST", data);
                        //responseInString = Encoding.UTF8.GetString(response);
                    }
                    res = JsonConvert.DeserializeObject <CompanyBranchOutput>(responseInString);
                }
                catch (Exception e)
                {
                    var in_active = _AccountManagementService.company_in_active(resp.companyID);
                }
            }



            return(res);
        }