예제 #1
0
        /// <summary>
        /// 更改用户权限
        /// </summary>
        /// <param name="CustomerSysNo"></param>
        /// <param name="AvtarImageStatus"></param>
        public void UpdateCustomerRights(CustomerRightMaintainView vm, EventHandler <RestClientEventArgs <List <CustomerRight> > > callback)
        {
            CustomerRightReq msg = new CustomerRightReq();

            msg.CustomerSysNo = vm.CustomerSysNo;
            vm.RightList.ForEach(item =>
            {
                if (item.ItemChecked)
                {
                    msg.RightList.Add(item.ConvertVM <CustomerRightVM, CustomerRight>());
                }
            });
            string relativeUrl = "/CustomerService/Customer/UpdateCustomerRights";

            restClient.Update <List <CustomerRight> >(relativeUrl, msg, callback);
        }
예제 #2
0
 public void UpdateCustomerRights(CustomerRightReq request)
 {
     ObjectFactory <CustomerAppService> .Instance.UpdateCustomerRight(request.CustomerSysNo, request.RightList);
 }