示例#1
0
 public static KindDTO From(Kind kind)
 {
     var dto = new KindDTO();
     dto.Name = kind.Name;
     dto.Type = kind.Type.ToString().ToLower();
     return dto;
 }
示例#2
0
文件: Wine.cs 项目: bolthar/vinskap
 public Wine(string name, Kind kind, Producer producer, double alcohol)
 {
     Name = name;
     Kind = kind;
     Producer = producer;
     Alcohol = alcohol;
 }
示例#3
0
 public KindCreated(Kind kind)
 {
     Kind = kind;
 }