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

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