示例#1
0
 public async Task <Guid> Delete(DeleteASuggestionDto dto) =>
 await _httpService.DeleteAsync <Guid>($"{BaseUrl}/{dto.Id}", dto);
示例#2
0
        public async Task <ActionResult <Guid> > Delete([FromBody] DeleteASuggestionDto dto, Guid suggestionId)
        {
            dto.Id = suggestionId;

            return(await Delete <DeleteASuggestionDto, DeleteASuggestionCommand, Guid>(dto, _mediator, _mapper));
        }