Exemplo n.º 1
0
        private void LoadingData()
        {
            switch (_stateRental)
            {
            case StateRentalEnum.Activated:
                _rentals = _rentalService.GetRentalsByState(StateRentalEnum.Activated, StateProductEnum.NonAvailable);
                break;

            case StateRentalEnum.Returned:
                _rentals = _rentalService.GetRentalsByState(StateRentalEnum.Returned);
                break;

            default: _rentals = _rentalService.All();
                break;
            }
        }