52
1
using System;
2
3
4
public class Program
5
{
6
public static void Main()
7
{
8
Product p = new Product(){
9
ProductCode = "P01" ,
10
ProductName = "Lumia 640XL" ,
11
ProductDescription= "Lumia 640XL from Microsoft",
12
Price = 15000,
13
CategoryCode="SP",
14
IsPerishable = false,
15
IsReturnable = true};
16
17
ProductViewModel vm = new ProductViewModel()
18
{
19
ProductCode = p.ProductCode,
20
ProductName= p.ProductName,
21
Description = p.ProductDescription,
22
Price = p.Price
23
24
};
Cached Result
Prdocut Code : P01
Product Name : Lumia 640XL
Product Description : Lumia 640XL from Microsoft
Price : 15000