Пример #1
0
        public async Task <Core.Notification> Handle(CreateCustomerCommand request, CancellationToken cancellationToken)
        {
            Core.Notification result = new Core.Notification();

            return(result);
        }
Пример #2
0
        public async Task <IActionResult> Create([FromBody] CreateCustomerCommand customer)
        {
            Core.Notification result = await _mediator.Send(customer);

            return(Ok(result));
        }