public async Task <bool> Save(CreateEventStoreDto createEventStoreDto)
        {
            var command = _mapper.Map <CreateEventStoreCommand>(createEventStoreDto);

            await _mediator.Send(command);

            return(true);
        }
Example #2
0
 public async Task <ActionResult> Create([FromBody] CreateEventStoreDto createEventStoreDto)
 {
     return(Ok(await _evenStoreService.Save(createEventStoreDto)));
 }