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)); }
public Task <ReviewDto> UpdateAsync(Guid id, ReviewCreateUpdateDto input) { return(_service.UpdateAsync(id, input)); }