示例#1
0
 public static void Update(this Entities.Score score, Models.Score newScore)
 {
     score.LootSize  = newScore.LootSize;
     score.LootValue = newScore.LootValue;
     score.Service   = newScore.Service;
     score.Price     = newScore.Price;
 }
示例#2
0
 public static Score ToDto(this Models.Score score)
 {
     return(new Score
     {
         LootSize = score.LootSize,
         LootValue = score.LootValue,
         Service = score.Service,
         Price = score.Price
     });
 }