示例#1
0
 public async Task <SuggestionDto> Create(CommentASuggestionDto dto) =>
 await _httpService.PostAsync <SuggestionDto>($"{BaseUrl}/{dto.SuggestionId}/comments", dto);
示例#2
0
        public async Task <ActionResult <HALResponse> > Comment([FromBody] CommentASuggestionDto dto, Guid suggestionId)
        {
            dto.SuggestionId = suggestionId;

            return(await Create <CommentASuggestionDto, CommentASuggestionCommand>(dto, _mediator, _mapper, _halService));
        }