public async Task UpdateItemTitle(long id, [FromBody] ScheduleItemMarkdownInput item) { var command = new UpdateItemTitleCommand(id, item.Title, UserId); await _mediator.Send(command); }
public AddItemCommand(long scheduleId, ScheduleItemMarkdownInput model, UserDto user) { ScheduleId = scheduleId; Model = model; User = user; }
public async Task <long> MakrdownItem(long id, [FromBody] ScheduleItemMarkdownInput input) { var command = new AddItemCommand(id, input, UCenterUser); return(await _mediator.Send(command)); }