public async Task <ActionResult <BudgetCategoryDto> > Create([FromBody] CreateBudgetCategory.Command command, [FromRoute] int budgetId) { command.BudgetId = budgetId; var response = await Mediator.Send(command); return(Ok()); }
[HttpPost("create")] public async Task <CreateBudgetCategory.Result> CreateBudgetCategory([FromBody] CreateBudgetCategory.Command command) => await _mediator.Send(command);