public async Task UpdateSummaryNote(long itemId, [FromBody] SummaryNoteInputModel inputModel) { var command = new UpdateSummaryNoteCommand(itemId, inputModel.Id, inputModel.Note, UCenterUser.UserId); await _mediator.Send(command); }
public async Task <long> AddSummaryNote(long itemId, [FromBody] SummaryNoteInputModel inputModel) { var command = new AddSummaryNoteCommand(itemId, inputModel.Note, UCenterUser.UserId); return(await _mediator.Send(command)); }