public async Task <IActionResult> Rebuild([FromBody] RebuildProjectionRequest request) { Guard.Against.Null(request, nameof(request)); var command = RebuildProjection.Create( request.ProjectionName ); await commandBus.Send(command); return(Accepted()); }
public async Task <IActionResult> Rebuild([FromBody] RebuildProjectionRequest request) { if (request == null) { throw new ArgumentNullException(nameof(request)); } var command = RebuildProjection.Create( request.ProjectionName ); await commandBus.Send(command); return(Accepted()); }