Пример #1
0
        public async Task <IActionResult> MoveToSavings([FromBody] MoveExpenseToSavings.Command command)
        {
            await _mediator.Send(command);

            return(Ok(SyncCommandResult.From(command, _eventHub.GetEvents())));
        }
Пример #2
0
        public async Task <IActionResult> AddCashExpense([FromBody] AddCashExpense.Command command)
        {
            await _mediator.Send(command);

            return(Ok(SyncCommandResult.From(command, _eventHub.GetEvents())));
        }
Пример #3
0
        public async Task <IActionResult> SetExpnenseCategory([FromBody] SetExpenseCategory.Command command)
        {
            await _mediator.Send(command);

            return(Ok(SyncCommandResult.From(command, _eventHub.GetEvents())));
        }