public async Task <IActionResult> Stores(SearchStores searchStores) { //var stores = await searchStoresService.HandleAsync(searchStores); //if(((IEnumerable<Store>)stores.Value).FirstOrDefault(s => s.Name == searchStores.Name) == null) //{ // ViewBag.Stores = await searchStoresService.HandleAsync(searchStores); //} //var getStores = new GetStore(); //var sonuc = getStoreService.HandleAsync(getStores).Result; //ViewBag.Stores = sonuc.Value; Result result = await searchStoresService.HandleAsync(searchStores); return(View(result.Value)); }
public SearchStoresChild(SearchStores searchStoreForAllCompanyloyeeUserControl) { InitializeComponent(); DataContext = _viewModel; _userControl = searchStoreForAllCompanyloyeeUserControl; }