Ejemplo n.º 1
0
        //获取运费计算系统客户信息 yungchu
        public JsonResult GetCustomerType(string customerCode)
        {
            var             result          = new ResponseResult();
            List <Customer> getListCustomer = _freightService.GetListCustomers(customerCode);

            if (getListCustomer != null &&
                getListCustomer.Count != 0)
            {
                Guid customerId = getListCustomer[0].CustomerID;
                result.Message = customerId.ToString();
                result.Result  = true;
            }
            else
            {
                result.Result = false;                //取当前类别
            }

            return(Json(result, JsonRequestBehavior.AllowGet));
        }