public async Task <ActivationSliderCommandResponse> Handle(DeActiveSliderCommand command)
        {
            var slider = await _repository.FindAsync(command.Id);

            slider.DeActive();
            return(new ActivationSliderCommandResponse());
        }
Beispiel #2
0
        public async Task <IHttpActionResult> Patch(DeActiveSliderCommand command)
        {
            var response = await Bus.Send <DeActiveSliderCommand, ActivationSliderCommandResponse>(command);

            return(Ok(response));
        }