public Task SetAbsenceStateAsync( Guid absenceId, AbsenceStateSetCommand command, CancellationToken cancellationToken = default) { return(flurlClient.Request(BasePath, absenceId) .PostJsonAsync(command, cancellationToken)); }
public Task SetAbsenceState(Guid absenceId, [FromBody] AbsenceStateSetCommand command, CancellationToken cancellationToken) { return(mediator.Send(new EditCommand <AbsenceStateSetCommand> { Id = absenceId, InnerCommand = command }, cancellationToken)); }