public async Task <IActionResult> OnPostAsync()
        {
            await _service.CreateAsync(
                ObjectMapper.Map <CreateUpdateGiftCardTemplateViewModel, CreateUpdateGiftCardTemplateDto>(
                    GiftCardTemplate));

            return(NoContent());
        }
示例#2
0
 public virtual Task <GiftCardTemplateDto> CreateAsync(CreateUpdateGiftCardTemplateDto input)
 {
     return(_service.CreateAsync(input));
 }