private void RefreshMenuItem_OnClick(object sender, RoutedEventArgs e) { foreach (var selling in EyedModels.Items) { var sell = (ModelDetails)selling; carsApi.MergeTo(sell); EyedModelsInitListBox(sell); EyedModels.Items.Refresh(); } MessageBox.Show("Подгрузка закончилась"); }
public JsonResult MergeTo(ModelDetails sell) { return(Json(carsApi.MergeTo(sell), JsonRequestBehavior.AllowGet)); }