コード例 #1
0
 public static void Map(FoodDetailDto source, Food target)
 {
     target.FoodId = source.FoodId;
     target.Name = source.Name;
     target.Brand = source.Brand;
     target.Quantity = source.Quantity;
     target.Calories = source.Calories;
 }
コード例 #2
0
 public static Food Map(FoodDetailDto source)
 {
     var result = new Food();
     Map(source, result);
     return result;
 }