예제 #1
0
        public void ManualAdjustUserExperience(ExperienceVM vm, EventHandler <RestClientEventArgs <CustomerExperienceLog> > callback)
        {
            string relativeUrl        = "/CustomerService/Customer/ManualAdjustUserExperience";
            CustomerExperienceLog msg = vm.ConvertVM <ExperienceVM, CustomerExperienceLog>();

            restClient.Update(relativeUrl, msg, callback);
        }
예제 #2
0
        private ExperienceInfo ConvertRequestVMToInfo(ExperienceVM vm)
        {
            ExperienceInfo info = vm.ConvertVM <ExperienceVM, ExperienceInfo>((v, i) =>
            {
            });

            info.ExperienceItemInfoList = new List <ExperienceItemInfo>();

            vm.ExperienceItemInfoList.ForEach(item =>
            {
                //info.ExperienceItemInfoList.Add(new ExperienceItemInfo()
                //{
                //    AllocateQty = item.AllocateQty,
                //    ProductID = item.ProductID,
                //    ProductName = item.ProductName,
                //    ProductSysNo = item.ProductSysNo
                //});

                ExperienceItemInfo itemInfo = item.ConvertVM <ExperienceItemVM, ExperienceItemInfo>();
                info.ExperienceItemInfoList.Add(itemInfo);
            });

            return(info);
        }