mirror of
https://github.com/rudollee/LearningMVC.git
synced 2025-06-07 07:56:14 +00:00
27 lines
437 B
C#
27 lines
437 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
|
|
namespace LanguageFeatures.Models
|
|
{
|
|
public class Product
|
|
{
|
|
private string name;
|
|
public int ProductID { get; set; }
|
|
public string Name {
|
|
get {
|
|
return ProductID + name;
|
|
}
|
|
set {
|
|
name = value;
|
|
}
|
|
}
|
|
public string Description { get; set; }
|
|
public decimal Price { get; set; }
|
|
public string Category { get; set; }
|
|
|
|
|
|
|
|
}
|
|
} |