Beispiel #1
0
        public IHttpActionResult Create(CreateSeasonRequest request)
        {
            var command = _mapper.Map <CreateSeasonCommand>(request);

            _commandSender.Send(command);

            return(Ok());
        }
Beispiel #2
0
        public async Task <IActionResult> Create(CreateSeasonRequest request)
        {
            await _seasonService.Create(request);

            return(Ok());
        }
 public async Task Create(CreateSeasonRequest requset)
 {
     Season season = _mapper.Map <Season>(requset);
     await _seasonRepository.CreateAsync(season);
 }