Exemple #1
0
        public ActionResult Detail(Guid storeId)
        {
            var request  = new StoreQueryRequest(storeId);
            var response = _storeQueryService.GetStoreById(request);

            return(View("Detail", response));
        }
Exemple #2
0
        public ActionResult Edit(Guid storeId)
        {
            var request  = new StoreQueryRequest(storeId);
            var response = _storeQueryService.GetStoreById(request);

            if (response.Failed || response.Store == null)
            {
                return(View("List"));
            }

            var command = response.Store.ToCommand();

            FillStates(response.Store.Location.Country.Name);
            return(View("Edit", command));
        }