public AddSummaryLinkCommand(long itemId, Guid userId, SummaryLinkDto linkDto) { ItemId = itemId; UserId = userId; LinkDto = linkDto; }
public async Task <long> SummaryLink(long itemId, [FromBody] SummaryLinkDto linkDto) { var command = new AddSummaryLinkCommand(itemId, UCenterUser.UserId, linkDto); return(await _mediator.Send(command)); }