public async Task <ActionResult> Create([FromBody] CreateBudget.Command command) { var response = await Mediator.Send(command); return(Ok(response.Data)); }
[HttpPost("create")] public async Task <CreateBudget.Result> CreateBudget([FromBody] CreateBudget.Command command) => await _mediator.Send(command);