Skip to content

Instantly share code, notes, and snippets.

@lohithgn
Created June 18, 2013 19:48
Show Gist options
  • Save lohithgn/5808652 to your computer and use it in GitHub Desktop.
Save lohithgn/5808652 to your computer and use it in GitHub Desktop.
Product Model class
[DataContract]
public class ProductModel
{
private int productID;
[DataMember]
public int ProductID
{
get { return productID; }
set { productID = value; }
}
private string productName;
[DataMember]
public string ProductName
{
get { return productName; }
set { productName = value; }
}
private decimal price;
[DataMember]
public decimal Price
{
get { return price; }
set { price = value; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment