public void LoadMarkData(object obj) { CompleteLabel.Dispatcher.BeginInvoke(new Action(LoadStarted)); models = carsApi.Models(obj.ToString()); BrandComboBox.Dispatcher.BeginInvoke(new Action <IDictionary <string, int> >(InitializeModelComboBox), models); CompleteLabel.Dispatcher.BeginInvoke(new Action(LoadComplited)); }
public JsonResult Models(string brandName) { return(Json(carsApi.Models(brandName), JsonRequestBehavior.AllowGet)); }
public void AlfaRomeoModelsDataExists() { CollectionAssert.Contains(carsApi.Models("Alfa Romeo"), new KeyValuePair <string, int>("146", 3)); }