Exemple #1
0
        public async Task <ActionResult <BudgetCategoryDto> > Create([FromBody] CreateBudgetCategory.Command command, [FromRoute] int budgetId)
        {
            command.BudgetId = budgetId;
            var response = await Mediator.Send(command);

            return(Ok());
        }
Exemple #2
0
 [HttpPost("create")] public async Task <CreateBudgetCategory.Result> CreateBudgetCategory([FromBody] CreateBudgetCategory.Command command) => await _mediator.Send(command);