Example #1
0
        public async Task <IActionResult> OnPostAsync()
        {
            await _service.UpdateAsync(Id,
                                       ObjectMapper.Map <CreateUpdateGiftCardTemplateViewModel, CreateUpdateGiftCardTemplateDto>(
                                           GiftCardTemplate));

            return(NoContent());
        }
Example #2
0
 public virtual Task <GiftCardTemplateDto> UpdateAsync(Guid id, CreateUpdateGiftCardTemplateDto input)
 {
     return(_service.UpdateAsync(id, input));
 }