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