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)); }
public async Task <SuggestionDto> Delete(DeleteASuggestionCommentDto dto) => await _httpService.DeleteAsync <SuggestionDto>($"{BaseUrl}/{dto.SuggestionId}/comments/{dto.Id}", dto);