コード例 #1
0
 private static CarAds CreateDealerAds(string make, string model, int year, CarPriceType priceType, decimal price, string comments, string email, string abn)
 {
     var ads = CreateAds(make,model,year,priceType,price,comments);
     ads.ContactDetail = new DealerSellerDetail
         {
             EmailAddress = email,
             DealerABN = abn
         };
     return ads;
 }
コード例 #2
0
 private static CarAds CreatePrivateAds(string make, string model, int year, CarPriceType priceType, decimal price, string comments, string email, string contactName, string phone)
 {
     var ads = CreateAds(make,model,year,priceType,price,comments);
     ads.ContactDetail = new PrivateSellerDetail
         {
             EmailAddress = email,
             ContactName = contactName,
             Phone = phone
         };
     return ads;
 }
コード例 #3
0
 private static CarAds CreateAds(string make, string model, int year, CarPriceType priceType, decimal price, string comments)
 {
     return new CarAds()
     {
         Id = Guid.NewGuid(),
         CarListed = new Car()
         {
             Id = Guid.NewGuid(),
             Make = make,
             Model = model,
             Year = year,
             PriceType = priceType,
             Price = price,
         },
         ListedDate = DateTime.Now,
         Comments = comments
     };
 }