public async Task <IActionResult> MoveToSavings([FromBody] MoveExpenseToSavings.Command command) { await _mediator.Send(command); return(Ok(SyncCommandResult.From(command, _eventHub.GetEvents()))); }
public async Task <IActionResult> AddCashExpense([FromBody] AddCashExpense.Command command) { await _mediator.Send(command); return(Ok(SyncCommandResult.From(command, _eventHub.GetEvents()))); }
public async Task <IActionResult> SetExpnenseCategory([FromBody] SetExpenseCategory.Command command) { await _mediator.Send(command); return(Ok(SyncCommandResult.From(command, _eventHub.GetEvents()))); }