public ScoredOfferListViewModel MapToScoredOfferListViewModel(List<ScoredOfferViewModel> scoredOffersViewModel) { var scoredOfferListViewModel = new ScoredOfferListViewModel(scoredOffersViewModel); return scoredOfferListViewModel; }
public OfferSearchViewModel MapToOfferSearchViewModel(OfferSearchModel offerSearchModel, ScoredOfferListViewModel scoredOfferListViewModel) { return new OfferSearchViewModel(offerSearchModel, scoredOfferListViewModel); }
public OfferSearchViewModel(OfferSearchModel searchParams, ScoredOfferListViewModel offers) { SearchParams = searchParams; Offers = offers; }
public OfferSearchViewModel GetOfferSearchViewModelWithoutOffers(OfferSearchModel offerSearchModel) { var offerList = new ScoredOfferListViewModel(); var offerSearchViewModel = _mappingService.MapToOfferSearchViewModel(offerSearchModel, offerList); return offerSearchViewModel; }
public OfferSearchViewModel() { SearchParams = new OfferSearchModel(); Offers = new ScoredOfferListViewModel(); }