Example #1
0
        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);