public async Task <ActivationSliderCommandResponse> Handle(ActiveSliderCommand command) { var slider = await _repository.FindAsync(command.Id); slider.Active(); return(new ActivationSliderCommandResponse()); }
public async Task <IHttpActionResult> Patch(ActiveSliderCommand command) { var response = await Bus.Send <ActiveSliderCommand, ActivationSliderCommandResponse>(command); return(Ok(response)); }