示例#1
0
        public virtual async Task <IActionResult> OnPostAsync()
        {
            var dto = ObjectMapper.Map <CreateEditMiniProgramViewModel, CreateUpdateMiniProgramDto>(ViewModel);
            await _service.UpdateAsync(Id, dto);

            return(NoContent());
        }
 public Task <MiniProgramDto> UpdateAsync(Guid id, CreateUpdateMiniProgramDto input)
 {
     return(_service.UpdateAsync(id, input));
 }