Exemple #1
0
        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);
        }
Exemple #2
0
 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);
        }