public ActionResult Detail(Guid storeId) { var request = new StoreQueryRequest(storeId); var response = _storeQueryService.GetStoreById(request); return(View("Detail", response)); }
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)); }