public virtual async Task <IActionResult> OnPostAsync()
        {
            var dto = ObjectMapper.Map <CreateReviewViewModel, CreateReviewDto>(ViewModel);
            await _service.CreateAsync(dto);

            return(NoContent());
        }
 public virtual Task <ReviewDto> CreateAsync(CreateReviewDto input)
 {
     return(_service.CreateAsync(input));
 }
示例#3
0
 public Task <ReviewDto> CreateAsync(ReviewCreateUpdateDto input)
 {
     return(_service.CreateAsync(input));
 }