コード例 #1
0
        public async Task <ActionResult <HALResponse> > DeleteComment([FromBody] DeleteASuggestionCommentDto dto, Guid suggestionId, Guid commentId)
        {
            dto.SuggestionId = suggestionId;
            dto.Id           = commentId;

            return(await DeleteWithMap <DeleteASuggestionCommentDto, DeleteASuggestionCommentCommand, SuggestionDto>(dto, _mediator, _mapper, _halService));
        }
コード例 #2
0
 public async Task <SuggestionDto> Delete(DeleteASuggestionCommentDto dto) =>
 await _httpService.DeleteAsync <SuggestionDto>($"{BaseUrl}/{dto.SuggestionId}/comments/{dto.Id}", dto);