コード例 #1
0
 private IEnumerable <BidWinner> GetSelectedWinner(SelectedBidWinnerViewModel selectedWinners)
 {
     return(from selectedWinner in selectedWinners.Bidwinners
            select new BidWinner()
     {
         BidWinnerID = selectedWinner.BidWinnnerID,
         DestinationID = selectedWinner.DestinationId
     });
 }
コード例 #2
0
        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);
        }