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