private void CreateShopIfNotExists() { if (shopService.CreateNewShopIfNotExists(cb_shop.Text.ToUpper()) > 0) { string SelectedShop = cb_shop.Text.ToUpper(); cb_shop.DataContext = shopService.GetShopsCollection(); cb_shop.Text = SelectedShop; } }
private void CreateShopIfNotExists() { if (shopService.CreateNewShopIfNotExists(cb_shop.Text.ToUpper()) > 0) { string SelectedShop = cb_shop.Text.ToUpper(); cb_shop.DataContext = shopService.GetShopsCollection(); cb_shop.Text = SelectedShop; } }