public virtual Task <CouponTemplateDto> GetAsync(Guid id)
 {
     return(_service.GetAsync(id));
 }
        public virtual async Task OnGetAsync()
        {
            var dto = await _service.GetAsync(Id);

            ViewModel = ObjectMapper.Map <CouponTemplateDto, CreateEditCouponTemplateViewModel>(dto);
        }
Exemplo n.º 3
0
 public virtual async Task <CouponTemplateData> FindByIdAsync(Guid id, CancellationToken cancellationToken = default)
 {
     return(_objectMapper.Map <CouponTemplateDto, CouponTemplateData>(
                await _couponTemplateAppService.GetAsync(id)));
 }