예제 #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 Models.Score ToModel(this Entities.Score score)
 {
     return(new Models.Score(
                lootSize: score.LootSize,
                lootValue: score.LootValue,
                service: score.Service,
                price: score.Price
                ));
 }