public void Update(CSVM vm, EventHandler <RestClientEventArgs <CSInfo> > callback) { string relativeUrl = "/CustomerService/CS/Update"; CSInfo msg = vm.ConvertVM <CSVM, CSInfo>(); msg.CompanyCode = CPApplication.Current.CompanyCode; restClient.Update <CSInfo>(relativeUrl, msg, callback); }
private void hlbGetUnderlings_Click(object sender, RoutedEventArgs e) { CSVM entityvm = CSGrid.SelectedItem as CSVM; vm.Name = entityvm.UserName; vm.Role = entityvm.Role; vm.IsGetUnderling = true; CSGrid.Bind(); }