public SelectedBidWinnerViewModel GetListOfBidWinners(int id) { var selectedBidWinners = new SelectedBidWinnerViewModel(); var bidWinner = _bidWinnerService.FindBy(m => m.BidID == id && m.Position == 1); if (bidWinner != null) { selectedBidWinners.Bidwinners = GetBidWinners(bidWinner).ToList(); } return selectedBidWinners; }
private IEnumerable<BidWinner> GetSelectedWinner(SelectedBidWinnerViewModel selectedWinners) { return (from selectedWinner in selectedWinners.Bidwinners select new BidWinner() { BidWinnerID = selectedWinner.BidWinnnerID, DestinationID = selectedWinner.DestinationId }); }