Пример #1
0
        public async Task <ActionResult> ApproveMovieRequest([FromRoute] int id)
        {
            var command = new ApproveMovieRequestCommand(id);

            var result = await _mediator.Send(command);

            return(result.ToResultIfValid <NoContentResult>());
        }
 private void GivenACommand()
 {
     _command = new ApproveMovieRequestCommand(1);
 }