We cannot run your code and you refuse to share the relevant bits so we cannot review the code. It seems to me the ExecuteAsync() methods do not function as you expect or the data is set correctly but your UI is not refreshing the content.
Here is the ExecuteAsync for getting data:
public class ViewAllOrdersUseCase : IViewAllOrdersUseCase
{
private readonly IOrderRepository _orderRepository;
public ViewAllOrdersUseCase(IOrderRepository orderRepository)
{
_orderRepository = orderRepository;
}
public async Task<IEnumerable<Order?>> ExecuteAsync(ClaimsPrincipal user)
{
return await _orderRepository.GetAllOrders(user);
}
}
Here is ExecuteAsync for updating:
public class PassiveOrderDetailUseCase : IPassiveOrderDetailUseCase
{
private readonly IOrderDetailRepository _orderDetailRepository;
public PassiveOrderDetailUseCase(IOrderDetailRepository orderDetailRepository)
{
_orderDetailRepository = orderDetailRepository;
}
public async Task ExecuteAsync(OrderDetail orderDetail)
{
await _orderDetailRepository.PassiveOrderDetailAsync(orderDetail);
}
}
top secret codes are revealed as you wish :)