Exemplo n.º 1
0
        public async Task <bool> ChangeStateOfOrderList(OrderChangeStatusDto input)
        {
            var userId = User.Identity.GetUserId();
            var result = await _orderAppService.ChangeStateOfOrderList(input, userId);

            return(result);
        }
        public async Task <bool> ChangeStateOfOrderList(OrderChangeStatusDto input, string userId)
        {
            await UnitOfWork.OrderRepository.ChangeStateOfOrderListForceAsync(
                input.Orders,
                input.OrderStatus,
                userId,
                input.Description);

            await UnitOfWork.SaveAsync();

            return(true);
        }