private void GivenACommand() { _command = new UpdatePlexServerLibraryCommand { IsEnabled = true }; }
public async Task <ActionResult> UpdateLibrary([FromRoute] string key, [FromBody] UpdatePlexServerLibraryCommand command) { command.Key = key; var result = await _mediator.Send(command); return(result.ToResultIfValid <NoContentResult>()); }