public HttpResponseMessage AddDistributorAuthority(DistributorAuthorityOperateDTO dto)
        {
            ResultDTO <object> actionresult = new ResultDTO <object>();

            try
            {
                switch (dto.AddType)
                {
                case 1:    //授权经销商付款条款
                    actionresult.SubmitResult = _IDistributorServices.DistributorPayAuthority(dto);
                    break;

                case 2:    //授权经销商运输方式
                    actionresult.SubmitResult = _IDistributorServices.DistributorTransportAuthority(dto);
                    break;

                case 3:    //授权经销商产品线
                    actionresult.SubmitResult = _IDistributorServices.DistributorProductLineAuthority(dto);
                    break;

                case 4:    //授权经销商授权产品线区域
                    actionresult.SubmitResult = _IDistributorServices.DistributorProductLineRegionAuthority(dto);
                    break;
                }
            }
            catch (Exception e)
            {
                actionresult.SubmitResult = false;
                actionresult.Message      = e.Message;
            }

            HttpResponseMessage result = new HttpResponseMessage
            {
                Content = new StringContent(JsonConvert.SerializeObject(actionresult),
                                            System.Text.Encoding.GetEncoding("UTF-8"),
                                            "application/json")
            };

            return(result);
        }