23 lines
622 B
C#
23 lines
622 B
C#
using System.ComponentModel;
|
|
|
|
public class Fabric
|
|
{
|
|
public int Id { get; private set; }
|
|
[DisplayName("Тип ткани")]
|
|
public FabricType FabricType { get; private set; }
|
|
[DisplayName("Цвет")]
|
|
public Color Color { get; private set; }
|
|
[DisplayName("Метраж")]
|
|
public double Metrage { get; private set; }
|
|
public static Fabric CreateEntity(int id, FabricType fabricType, Color color, double metrage)
|
|
{
|
|
return new Fabric
|
|
{
|
|
Id = id,
|
|
FabricType = fabricType,
|
|
Color = color,
|
|
Metrage = metrage,
|
|
|
|
};
|
|
}
|
|
} |