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