public virtual async Task <IActionResult> OnPostAsync()
        {
            var dto = await _service.GetAsync(Id);

            var updateDto = ObjectMapper.Map <EditReviewViewModel, UpdateReviewDto>(ViewModel);

            dto.MapExtraPropertiesTo(updateDto, MappingPropertyDefinitionChecks.None);

            await _service.UpdateAsync(Id, updateDto);

            return(NoContent());
        }
 public virtual Task <ReviewDto> UpdateAsync(Guid id, UpdateReviewDto input)
 {
     return(_service.UpdateAsync(id, input));
 }
示例#3
0
 public Task <ReviewDto> UpdateAsync(Guid id, ReviewCreateUpdateDto input)
 {
     return(_service.UpdateAsync(id, input));
 }