Пример #1
0
        public ActionResult <int> Post([FromBody] CreateVenueDTO request)
        {
            var command = new CreateVenueCommand(_mapper.Map <Venue>(request));
            var handler = _commandHandler.Build(command);

            return(Ok(handler.Execute()));
        }
 public ICommandHandler <CreateVenueCommand, int> Build(CreateVenueCommand command)
 {
     return(new CreateVenueCommandHandler(_service, command));
 }