public virtual async Task OnGetAsync() { ServerSide = await SettingProvider.GetAsync <bool>("EasyAbp.EShop.Plugins.Baskets.EnableServerSideBaskets") && await AuthorizationService.IsGrantedAsync(BasketsPermissions.BasketItem.Default); if (!ServerSide) { return; } var dto = await _service.GetAsync(Id); ViewModel = ObjectMapper.Map <BasketItemDto, EditBasketItemViewModel>(dto); }
public Task <BasketItemDto> GetAsync(Guid id) { return(_service.GetAsync(id)); }
public virtual async Task OnGetAsync() { var dto = await _service.GetAsync(Id); ViewModel = ObjectMapper.Map <BasketItemDto, EditBasketItemViewModel>(dto); }