public async Task <IActionResult> DeleteMovement(MovementCreationDto dto)
        {
            try
            {
                await _movementRepository.Delete(dto);

                return(Ok());
            }
            catch (Exception e)
            {
                return(NotFound("This Movement cannot be delete"));
            }
        }
        public async Task <IActionResult> CreateMovement(MovementCreationDto dto)
        {
            var newMovement = new MovementCreationDto
            {
                Amount      = dto.Amount,
                Date        = dto.Date,
                Description = dto.Description,
                VoucherId   = dto.VoucherId
            };

            await _movementRepository.Create(newMovement);

            return(Ok(dto));
        }
        public async Task <IActionResult> UpdateMovement(MovementCreationDto dto)
        {
            try
            {
                var update = new MovementCreationDto
                {
                    Amount      = dto.Amount,
                    Date        = dto.Date,
                    Description = dto.Description,
                    VoucherId   = dto.VoucherId
                };

                await _movementRepository.Update(dto);

                return(Ok(update));
            }
            catch (Exception e)
            {
                return(NotFound("This Movement cannot be changed"));
            }
        }