Example #1
0
        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));
        }
Example #2
0
 public SearchStoresChild(SearchStores searchStoreForAllCompanyloyeeUserControl)
 {
     InitializeComponent();
     DataContext  = _viewModel;
     _userControl = searchStoreForAllCompanyloyeeUserControl;
 }