예제 #1
0
 public static MarketplaceItemEntity ToEntity(MarketplaceItemModel model) =>
 new MarketplaceItemEntity
 {
     Id          = model.Id,
     Image       = model.Image,
     Name        = model.Name,
     Description = model.Description,
     OwnerId     = model.OwnerId,
     Price       = model.Price
 };
예제 #2
0
 public OrderModel(
     int id,
     OrderStatusModel status,
     DateTime orderTime,
     MarketplaceItemModel itemId,
     UserModel?recipient
     ) : base(id, status, orderTime)
 {
     Recipient = recipient;
     Item      = itemId;
 }