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

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

            return(Ok(response));
        }