Exemple #1
0
        public async Task OnGetAsync()
        {
            var dto = await _service.GetAsync(Id);

            GiftCardTemplate = ObjectMapper.Map <GiftCardTemplateDto, CreateUpdateGiftCardTemplateViewModel>(dto);
        }
Exemple #2
0
 public virtual Task <GiftCardTemplateDto> GetAsync(Guid id)
 {
     return(_service.GetAsync(id));
 }
 public virtual async Task OnGetAsync(Guid templateId)
 {
     Template = await _giftCardTemplateAppService.GetAsync(templateId);
 }