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); }
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); }