Beispiel #1
0
 public static Bid MapAsNewEntity(this CreateBidResource model, Auction.Api.Data.Entities.Auction auction)
 {
     return(new Bid
     {
         Value = model.Value,
         Auction = auction,
         Winner = model.Winner
     });
 }
 public static Item MapAsNewEntity(this CreateItemResource model, Auction.Api.Data.Entities.Auction auction)
 {
     return(new Item
     {
         Name = model.Name,
         Auction = auction,
         MinPrice = model.MinPrice
     });
 }