示例#1
0
        public async Task <Bike> Handle(CreateBikeAsyncCommand command, CancellationToken cancellationToken)
        {
            var bike = new Bike()
            {
                Title  = command.Title,
                Type   = command.Type,
                Price  = command.Price,
                Status = command.Status
            };

            return(await _bikeService.CreateBikeAsync(bike));
        }